Monday, March 28, 2011

Good way to backup a system

A good way to backup a system is the sysrescue cd.
With this you can use partimage for ext2,ext3,reiserfs,jfs
testet with these filesystems and work fine.
Xfs was testet with debian etch. Here it was used together with
lilo and the restore result in a not bootable system.

For those situations, and for ext4, btrfs and reiser4 i would try
the simple dd command like this:
dd if=/dev/sda1 of=/backup/image.img
and after this
dd if=/dev/sda of=/backup/boot.img bs=512 count=63
This backup the Partiton 1 into the file image.img
and after this the bootsector (the first 63kb of the raw-device sda with a block size of 512 bytes) into boot.img.

Be careful of restoring, wrong usage of dd can delete the
whole harddisk.
Read the man page !