1

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!

2
  • 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, 2013 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, 2013 at 10:21

2 Answers 2

1

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.

0

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.

1
  • I'd also add /var/cache/apt/archives for debian and debian derivatives.
    – hookenz
    Feb 6, 2013 at 23:07

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .