Kamis, 07 April 2011

Backup Menggunakan dd command

full hard disk copy

dd if=/dev/hdx of=/dev/hdy
dd if=/dev/hdx of=/path/to/image
dd if=/dev/hdx | gzip > /path/to/image.gz

Hdx bisa jadi hda, hdb atau mungkin sda, sdb atau lainya.

Restore backup of hard disk copy

dd if=/path/to/image of=/dev/hdx

gzip -dc /path/to/image.gz | dd of=/dev/hdx

MBR backup

dd if=/dev/hdx of=/path/to/image count=1 bs=512

MBR Restore

dd if=/path/to/image of=/dev/hdx

tambahkan "count=1 bs=446" untuk membuang partition table, kita bisa restore nanti

Tidak ada komentar: