13

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

Oliver Salzburg
  • 89,072
  • 65
  • 269
  • 311
QAH
  • 325
  • 1
  • 3
  • 8

3 Answers3

16

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.

13

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
Johan
  • 5,515
2

I'm using backup2l to backup my Debian server (AFAIK Ubuntu is a derivative 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 in 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 dump my sql databases in a special directory and save it, too.

shycha
  • 113
lajuette
  • 4,852