dd if=/dev/sda bs=4M status=progress | ssh user@host "cat > /backup/sda.img"

Category: Backup & Restore

dd if=/dev/sda bs=4M status=progress | ssh user@host "cat > /backup/sda.img"

Stream a disk image to a remote host

Sends the raw disk copy over SSH to be written as /backup/sda.img on another machine, an offsite disk backup without local staging space. The remote must have room for the full image. Restoring works in reverse with dd on the receiving side.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.