Backup Disks


As sudo

dd if=/dev/sda of=disk.img

dd if=/dev/sda of=/dev/sdc

Compress it

gzip disk.img
bzip2 disk.img

To restore

dd if=disk.img of=/dev/sda

To backup and compress

dd if=/dev/sda1 | bzip2 > disk.img.bz2




Custom Search