Dd Backup over ssh
From Flo's Knowledge in a Nutshell
To make a dd backup over ssh and store the contents in a gzip-compressed image use the following commands:
initiate backup
dd if=/dev/sda | gzip -9 - | ssh root@remote "cat > /hd/flo/backup_rootli/image_rootli_sda.img.gz"
check the status of dd
loop should be executed in another screen than dd is running, the status will be displayed in the dd screen.
while [ "`ps -a | grep <pid_of_dd>`" ]; do sudo kill -SIGUSR1 <pid_of_dd>; sleep 10; done
restore the image
i didnt test it so far, but it should work (haha i love this sentence)
ssh root@remote "cat /hd/flo/backup_rootli/image_rootli_sda.img.gz" | gunzip -c - | dd of=/dev/sda
