Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm running an Ubuntu 9.10 Linux server. I'm trying to find a way to backup the machine while it is running and from what I see, this eliminates the disk clone utilities. All of the disk clone stuff I have seen for Linux requires that you reboot into a special live CD.

So my question is this, what is the best solution for backing up the system while it is running? Also, I don't really care about the OS config too much, I just want to be able to keep my stored files and my programs that I have installed on it.

Thanks

share|improve this question
2  
Hahaha! I think it is! But lets send this comment to /dev/null shall we? –  BloodPhilia May 21 '10 at 5:29
    
Something tells me this needs a disclaimer, no idea why though –  Ivo Flipse May 22 '10 at 5:59
    
For the uninitiated, the previous comments are jokes... sorry guys –  wag2639 May 28 '10 at 23:47

3 Answers 3

The important directories are /etc, /home, /var, and /srv. You may want to add /root, and remove unneeded bits from /var.

rsync is good if you want the files to be directly accessible, tar is fine if you don't.

share|improve this answer
    
Ok thanks for that info. Are there any disk clone backups that support "live" backups? Backups that don't require me to shutdown or deal physically with the server (such as put a CD in). –  QAH May 21 '10 at 1:48
    
    
what should not be backed-up in /var ? –  user01 Mar 14 at 19:04
    
/var/cache is usually a biggie. –  Ignacio Vazquez-Abrams Mar 14 at 22:49

I agree with Ignacio Vazquez-Abrams about /etc/ /home/ and some parts in /var/.

But don't forget to save a list of the installed packages, so you know what programs was installed...

dpkg --get-selections > dpkg.list
share|improve this answer

I'm using backup2l to backup my Debian server (AFAIK Ubuntu is a derivate of Debian). If configured correctly it automates your backup, e.g. getting the dpkg selections, creating differential and incremental backups (depending on your settings) and storing it an an archive. A post backup hook triggers rsync which syncs my archive with a remote copy.

I'm backing up /etc /var (with some exclusions like caches), /root, /home. Just think about what you have changed in addition to that and add it to the list. I for instance dumy my sql databases in a special directory and save it, too.

share|improve this answer

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.