Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 12-27-2007, 09:21 AM   #1
Registered: Dec 2007
Location: england
Distribution: slackware 11
Posts: 35

Rep: Reputation: 15
back up users home folder?


id like to know if its a good idea to back up a users entire home folder (to a tar.gz file), so that if the system goes down for any reason and needs to be completely reinstalled, i could just drop the users home folder back into /home. just thought id ask for opinions and see if there was any reason why this might not be such a good idea.
Old 12-27-2007, 09:29 AM   #2
Registered: Jun 2005
Location: Bosie, ID
Distribution: Fedora Core 4, Kurumin,BackTrack, Slackware 10.2, IPCop
Posts: 105

Rep: Reputation: 15
My 2 cents' worth

I would say that there should be nothing wrong with that. The thing you want to be careful of, however, is to verify that the backup is good. Also, if the server crashed because of something sitting in your home directory, creating a backup could cause the same issue when you rebuild.

Hope this helps
Old 12-27-2007, 11:10 AM   #3
Registered: Dec 2007
Location: england
Distribution: slackware 11
Posts: 35

Original Poster
Rep: Reputation: 15
thanks issinho
Old 12-27-2007, 12:10 PM   #4
LQ Guru
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
It's definitely a good idea. Usually you can get everything else (like installed software) back from the internet reposities/install disc, but home directories aren't "available" unless you make backups of them - the other grand thing to back up is system-wide configuration files, but if you don't take them, you'll only lose time, not anything you can't replace. Therefore I'd say backing up home directories is the most important thing to do on a machine that has user accounts that are actively used.

Remember, though, that usually each home directory contains a lot of configuration files/directories (whose filenames start with a dot, so they're hidden by default), and you should consider if you want to keep them too or not: they might not take much space (as most of them are plaintext files), but do spare your user-specific configurations (like theme settings); on the other hand, if moved to an "alien" environment (if you for example backup user's home dir in Ubuntu, then move it to some other distribution which is completely different - different desktop environment etc.), it just might be that not all of the configuration files co-operate well. Most of them should, some of them might not be used at all, and some might cause funny actions, especially if the configuration files were for (very) different program versions than the system they're put on later. Anyway they're easy to delete (deleting the config files/directories doesn't cause trouble, they're then just re-created with "factory settings" - a newly created home directory is often empty anyway), so it's not a bad idea to take backups of them anyway. Just make sure that whatever method you use (like tar and some compression program), it must back up the dot'ed directories as well, not just those that are "visible" (some programs don't care about filenames that begin with a dot, unless instructed otherwise).

Home directories are also maybe the most often changing places on the system, so backups should be taken more often than not. Weekly might not be often enough, but it depends on the system. If you do plan to take frequent backups, I suggest one "full" backup, and after that "changed" backups, that only store what is changed after the last backup. This way the later backups are usually a lot smaller than if you'd back everything up always, and they don't contain already-taken data. Drawback is that if one backup is lost, it's data is lost - so it's a good idea to take "full" backups from time to time (but not every time), to be sure.

If /home is not on it's own separate partition, backups of home directories are a must. And even if it is on it's own separate partition, it's good to have the data secured.
Old 12-27-2007, 03:25 PM   #5
Registered: Dec 2007
Location: england
Distribution: slackware 11
Posts: 35

Original Poster
Rep: Reputation: 15
thanks for the info b0uncer, i will go ahead and backup it will save me alot of time and effort, not having to start from scratch everytime.

BTW, just want to say if it wernt for you helpful guys on the LQ forums answering my many questions in the past (under different usernames), i could never have got my system to a place where tonight i just sat there and looked at the screen and thought 'yeah, i feel comfortable with linux now

so thanks very much to those who answer questions, this is a really nice community to be a part of
Old 12-27-2007, 03:45 PM   #6
Senior Member
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 -current
Posts: 2,300

Rep: Reputation: 90
It's always a good idea to back up the stuff you know you wouldn't want to lose.


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
Restricting users to their home folder supervillan Linux - Newbie 2 04-08-2009 11:47 AM
Home folder icon does not open home folder CiscoGeek Linux - Newbie 3 12-18-2006 07:00 AM
I can not open the user folder in home and write in a shared folder jorge_ivan Linux - General 8 08-02-2006 11:28 AM
Folder Max Size and Limiting SSH access to home folder. Mefistofeles Linux - General 4 11-26-2005 02:09 PM
Home Folder for new users CatSC Red Hat 3 11-29-2003 04:21 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:45 AM.

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