- Boot host to be backed up with a rescue image, e.g. SystemRescueCD.
- Connect to destination host:
ssh -L 8000:localhost:9000 destination.example.com
- On destination host:
socat -u TCP4-LISTEN:9000,reuseaddr,fork OPEN:/tmp/backup.img.bz2,create,append
- On host to be backed up:
dd if=/dev/sda | pv | bzip2 -9 | nc localhost 8000
Notes:
socat
installed on destination host/dev/sda
is whatever disk is to be imaged and sent to remote host