I have a live production server with different partitions that I would like to backup/ghost so that if the server crashes, I would have an easy way to restore it.
My server is running Debian Lenny, it's got 2 x 2TB hard disks in RAID1 mode.
Filesystem Size Used Avail Use% Mounted on
/dev/sda5 4.6G 1002M 3.4G 23% /
tmpfs 1.7G 0 1.7G 0% /lib/init/rw
udev 10M 744K 9.3M 8% /dev
tmpfs 1.7G 0 1.7G 0% /dev/shm
/dev/sda1 122M 15M 102M 13% /boot
/dev/sda6 4.6G 289M 4.1G 7% /home
/dev/sda8 942M 18M 877M 2% /tmp
/dev/sda9 1.8T 3.9G 1.7T 1% /var
As you can see, total disk usage is about 5GB. I can transfer that to another server on the network.
What would be the best way to perform a complete backup without stopping the server and how could I restore that backup in case of emergency ?
After browsing the entire Web, I couldn't find the answer that would make my life easy, so I give it a try here
Many thanks in advance.