Backing up Partition to Remote Server

From Docupedia

On the machine that is going to store the backup type:

 %fileserver> netcat -l -p 4000 | dd of=/srv/backup/repo-root.img

On the machine being backed up type:

 %machine1> netcat 192.168.30.12 4000 | dd if=/dev/hda2

For some clarity we basically set the remote computer to open port 4000 and take whatever contents comes in on that port and put it in a file named repo-root.img. On the machine were backing up you use netcat to open a socket on port 4000 and then you pipe into that socket everythings thats coming from the file /dev/hda2.

Or perhaps you want something a bit more secure? Perhaps with strong encryption? All you need is a listening SSHD:

 machine1%> dd if=/dev/hda2 | bzip2 -9c | ssh user@fileserver 'cat - > hda2.img.bz2'