Latest LQ Deal: Latest LQ Deals
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 06-09-2009, 10:23 PM   #1
LQ Newbie
Registered: Dec 2005
Posts: 13

Rep: Reputation: 0
Which Directories to Backup?

Which directories should I not bother backing up? Currently I exclude /proc, /tmp, and /mnt. Does anybody have any opinions on /sys, /dev, /lost+found?
Old 06-09-2009, 10:50 PM   #2
Registered: Jun 2009
Location: Maryland
Distribution: Fedora, CentOS, RHEL, Ubuntu
Posts: 41

Rep: Reputation: 3
Typically you're going to want to at least back up /home. If you're running a web server the you may want to include /var/www (or whatever your webroot is). If you're running databases, you'll have to lookup the best way to back those up for whichever type you're using. It's also usually a good idea to backup /etc/passwd and /etc/group. If you're running a bunch of services and you have plenty of backup space, you may just want to backup all of /etc since there are lots of configs in there. Leave /var/log, /tmp and /dev alone.
Old 06-09-2009, 11:08 PM   #3
Jean-Luc Besson
LQ Newbie
Registered: Jun 2009
Location: Paris, France
Distribution: Debian Stable
Posts: 22

Rep: Reputation: 3
Whenever I migrate or upgrade/ update - I only backup my user, like flakblas says: /home
Old 06-09-2009, 11:28 PM   #4
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
/Sys has a psuedo filesystem, so you don't back it up.
lost&found should be empty. It is were orphaned files found during fsck are copied to.
There may be links in the users' home directories to directories in /tmp. Make sure that you backup symlinks as links, instead of following the links and backing up the files.

If you use tar, you may find the -g <timestamp> option useful. It backs up files created or changed since the last backup.


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
How do I backup OS X (Just the system directories) Burgin Other *NIX 0 10-30-2005 12:28 PM
Automatic backup of specified directories? Spreegem Debian 3 07-29-2005 12:08 AM
Backup system - which directories to save? geodo Linux - Newbie 2 05-28-2004 12:15 AM
Home Directories - Backup kwigibo Linux - General 1 08-23-2002 09:29 AM
How to backup directories used by several users? J_Szucs Linux - Software 3 05-08-2002 02:48 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:36 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration