Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am backing up a server installation of Debian 6.0.6 "Squeeze".

My question is, what is a good starting list of places that do NOT need to be backed up. Some examples of things that, to my knowledge would not be necessary:

  • /dev
  • /lost+found
  • /mnt
  • /tmp

I would in theory like to be able to perform a full restore of the system if, for example, both of the RAID drives crapped out.

Thanks!

share|improve this question
2  
Setup your backup system to start at / and don't cross filesystem boundaries perhaps? If you have additional filesystems, then explicitly add them? This will ignore the ramdisk filesystem, and things like /proc,/sys, and /dev. –  Zoredache Feb 5 '13 at 23:34
    
Zoredache, I think that should be a proper answer; I'd upvote it. I find that approach much more reliable than listing an arbitrary set of mount points that might or might not correspond with the current set of virtual FSes mounted. –  MadHatter Feb 6 '13 at 10:21
add comment

2 Answers

Depending on whether you have them or not, /proc and /run should probably be ignored and /boot may not be mounted.

You will also find that /var/log/ contains a lot of data that you probably don't want to back up, but depending on compliance you may have to.

Files in /mnt may be NFS mounts from other servers or external media. NFS mounts would normally be backed up from the server where the disks are local but this isn't always the case. External media may or may not need to be backed up.

Mounted drives can be mounted in other places. Looking in /proc/mounts should tell you where this is the case.

Of course, your server(s) may be unique, and most of this could potentially be completely wrong.

share|improve this answer
add comment

The standard set of directories that I exclude in Linux backup processes are:

/dev
/lost+found
/media
/misc
/mnt
/net
/proc
/sys

and maybe /var/run, depending on what services you have running.

Also exclude any removable or remote filesystem mountpoints.

share|improve this answer
    
I'd also add /var/cache/apt/archives for debian and debian derivatives. –  Matt Feb 6 '13 at 23:07
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.