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 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 http://ubuntuforums.org/showthread.php?t=35087).

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
1  
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

1 Answer 1

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

 
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.