Imaging your drive to a single file.

Worked 2008 Kurt

Originally created img with this cmd; booted pc with knoppix livebootcd. umount /dev/hda; on server we want to create and image of: we are using ssh to cat the image file over to the spare 1TB usb external drive mounted as mnt on the main server.

cat /dev/hda | ssh root@192.168.1.199 "cat > /mnt/image-2008.img"

To restore the image back to the pc/server.
on server with img file in /mnt

dd if=/mnt/image-2008.img | nc 192.168.1.198 50000

Ran this before the command on the receiving server aka server we want to restore the image too, get netcat to listen first.
on receiveing pc...

nc -l -p 50000 | dd of=/dev/hda

 

Article List