Quote:
Originally Posted by zWaR
|
I always use dd. You can even pipe it to gzip to compress your backup.
Just be careful with it, they call it "dd" for a reason (actually, dd stands for "copy and convert", but its often called "data destroyer")
You can make things a little safer for yourself by omitting the "of=" option and compress your data at the same time:
Code:
dd if=/dev/sda1 | gzip > /media/USB/backup.gz
Which will backup the first partition on your hard drive to a USB (assuming your USB is mounted at /media/USB)
Check that command before you run it, I wrote that from memory.
to restore your data, you can use a similar command:
Code:
zcat /media/USB/backup.gz | dd of=/dev/sda2
Which will restore your image to the second partition of your hard drive
Warning: Be super careful with this command, make sure you are restoring from the right image and to the right partition, it can't be undone.