LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-12-2010, 11:52 AM   #1
Vegan
Member
 
Registered: Aug 2010
Location: Idaho
Distribution: Arch, Ubuntu, Fedora
Posts: 114
Blog Entries: 2

Rep: Reputation: 10
Backing up /home


So i am looking into upgrading from Fedora 12 to Fedora 13.
I will be Backing up my /home tonight onto an external harddrive to do the update

My question is when i put my /home onto the new installation what all is going to be copied over???
Settings, themes, programs, startup apps, etc

Or should i be backing another filesystem up to get all of that?
 
Old 10-12-2010, 12:20 PM   #2
amarand
LQ Newbie
 
Registered: Oct 2010
Location: Galloway, Ohio, USA
Distribution: CentOS
Posts: 19

Rep: Reputation: 7
Lightbulb Backup of /home for Upgrade

Quote:
Originally Posted by Vegan View Post
So i am looking into upgrading from Fedora 12 to Fedora 13.
I will be Backing up my /home tonight onto an external harddrive to do the update

My question is when i put my /home onto the new installation what all is going to be copied over???
Settings, themes, programs, startup apps, etc

Or should i be backing another filesystem up to get all of that?

If you use a good backup that copies all hidden files and directories, all of your settings, themes, programs and startup apps should transfer over. I regularly upgrade my CentOS box, and use a tar-to-tar backup of the /home filesystem, and have had a good experience. The only issue you may have is if you're performing a major upgrade, where Xorg/X has changed significantly, and sometimes that means that your hidden configuration files on the old version, aren't found/useful/converted with the newer version. Permissions are important, so simply copying over the files from /home isn't enough sometimes. Do a test run, and make sure the files and directories have the correct ownership and permissions. The best thing would be for all ownership and permissions to transfer completely. Some programs restore permissions as the executing user, which for a system-wide backup is most likely going to be root - bad mojo.

Another thing to consider is applications (such as Squirrelmail, for example), which store their data in places outside of the user's home directory. Also, if you're running a web server (Apache), you may have a /var/www/html directory to copy over, and configuration settings over in /etc/httpd.

My recommendation would be to backup the entire root filesystem, including /etc, /var (if not a whole-root filesystem, where these are underneath the root / partition). This way, if you find you are missing a configuration file, or some outlier data, you'll have it in backup.

An even better idea, if you can afford this, is to pull your Fedora 12 disks out entirely, and perform a fresh installation. Once complete, plug your Fedora 12 disks back in as secondary drives, mount the /home and root / partitions, and copy things over that way. It costs a little more, but with drives being so cheap now, this also gives you the benefit of having newer hard drives in the server, which resets the MTBF (mean-time between failure), giving you more time before your next hard drive crash.

Lots to think about, and hope this helped!
 
1 members found this post helpful.
Old 10-12-2010, 12:47 PM   #3
Vegan
Member
 
Registered: Aug 2010
Location: Idaho
Distribution: Arch, Ubuntu, Fedora
Posts: 114
Blog Entries: 2

Original Poster
Rep: Reputation: 10
^^^
That helps tremendously actually!
Thank you very much!

What program would you recommend to backup and keep file ownership, etc intact?

Last edited by Vegan; 10-12-2010 at 02:34 PM.
 
Old 10-12-2010, 03:16 PM   #4
amarand
LQ Newbie
 
Registered: Oct 2010
Location: Galloway, Ohio, USA
Distribution: CentOS
Posts: 19

Rep: Reputation: 7
Talking My favorite backup command...

Quote:
Originally Posted by Vegan View Post
What program would you recommend to backup and keep file ownership, etc intact?
I use this, as root:

tar cvf - /home | tar -C /backupplace -xpf -

Make sure /backupplace exists prior to executing this command. You'll then end up with a directory called:

/backupplace/home

And inside, you should see all of the users' home directories. Permissions should be close to 100% depending. I'd do a dry run and see what happens.

If you want to speed up the process, remove the first "v" for verbose. You won't see the files flying by, but you can watch the progress over in the backup directory with ls or df/du commands. If time is not of the essence, just use verbose and that way you can watch the progress.

You can also start from / and remove the leading slash in home, which will avoid the error about removing leading slash:

# cd /
# tar cf - home | tar -C /backupplace -xpf -
 
Old 10-12-2010, 10:58 PM   #5
Vegan
Member
 
Registered: Aug 2010
Location: Idaho
Distribution: Arch, Ubuntu, Fedora
Posts: 114
Blog Entries: 2

Original Poster
Rep: Reputation: 10
^^^
Backup process worked.
Ran into a couple little errors about it not being able to moved something that wasn't there. the files weren't anything to worry about though.
I am now currently running FC13
didn't have to use the backup though. the upgrade went through flawlessly
Thank you again.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
backing out of /home? razzera Linux - Security 7 01-27-2010 10:23 AM
Backing up home directory Steve W Linux - Newbie 19 08-25-2008 01:59 PM
Backing up home folder? evilc77 Linux - Newbie 6 03-09-2008 09:56 PM
Backing Up /home carlosinfl Linux - General 3 02-16-2006 12:04 PM
Backing up /home une Mandriva 8 07-10-2005 07:38 AM


All times are GMT -5. The time now is 12:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration