Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I saw similar questions, but this a bit different. Namely, I am trying to make a backup of Ubuntu server with RAID on it. I want to backup complete configuration since that I recently had a problem starting up Server because power-cut messed up partitions and I couldn't start server at all.

I've done same backups with servers before (successfully), but those machines were without RAID and use the following command (from Ubuntu forum

tar cvpjf backup.tar.bz2 --exclude=/proc \
   --exclude=/lost+found --exclude=/backup.tar.bz2 \
   --exclude=/mnt --exclude=/sys --exclude-media /

I will also exclude a couple of folders on Server (mounted a couple USB HDDs), such as --/backup_folder1, /backup_folder2, etc

So, my question is: Am I doing the correct exclusions or making same mistake (simply don't want to find out in a harder way and stop almost entire company because I miseed something)?

share|improve this question
Don't think what your asking should be effected by the fact your using a RAID controller at all. – Coops Mar 8 '12 at 13:31
You also want to exclude /dev. Also, unless you have some broken hardware, you can cut the power all day long and not "mess up partitions". The only thing you should loose is any unsaved work you had at the time. – psusi Mar 8 '12 at 16:18
up vote 0 down vote accepted

The question you ask is not related to RAID at all.

Consider, however, what is really important when backing up a server.

Personally, I would create separate backups of /etc and /var{lib,log,www}, since these could be applied almost as-is to a new server with the same exact OS on it.

As for the rest - a disk image works wonders but increases significantly in value if you don't include any stored data in it, keeping it small.

Your data/content/files/whatever (the things this server actually serves) are probably best protected by running rsync to a remote backup location.

share|improve this answer
My mistake for tagging it as RAID, sorry. Idea was to explain problem which I had. I will do a backup that way. Thanks for quick respond – Zoran Mar 8 '12 at 13:55

Your Answer


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.