Backup a Hard Drive over the Network

This is a technique I constantly forget when I absolutely need it, and so I am going to post it for future reference as I hate trying to figure out over and over again.

So here is the big secret. First get a Linux distrobution that allows you to use a Live CD. Boot up the computer you wish to backup with the Live CD. While that is happening, get on your primary PC (that is hopefully running Linux) and type the following command and run it:
netcat -l -p 1234 | dd of=backup.img bs=16065b

Once the Live CD is booted, start up the terminal/konsole and run the following (must be ran after the prior command):
sudo dd if=<hard drive partition to backup> bs=16065b | netcat <linux PC's IP Address> 1234

That’s it! It will now backup the hard drive partition you selected on the PC running the Live CD. So easy!

1 comment so far ↓

#1 Carp on 08.19.07 at 2:38 pm

That’s a great tip. I’m sure I will use it.

Leave a Comment