Block copy disk over SSH with gzip
SoftwareWe haven’t had a things you already know, unless you don’t installment since March. So many things have happened in the interim, not least the need to copy disks over a network.
$SOURCE
$ dd if=$SOURCE_DISK | gzip -1 - | pv | ssh $TARGET_SERVER "gunzip -1 - | dd of=$TARGET_DISK"
This will copy a block device across SSH to a remote server, compressing with gzip to remove empty space, and pv to show progress.