Skip to main content

Using `dd` and `ssh` to copy a disk image over a network

dd if=/dev/sdX | ssh user@remotehost "dd of=ops-tools.img"

Another Way

On the Sourcemachine

 tar zcf - /* | nc $IP 4444

And on the Destination Machine

 nc -lp 4444 > backup.tar.gz