Notes
How to make a local copy of an SD Card on a remote machine
This comes useful when you need to back up a remote SBC.
ssh user@remote-machine "sudo -S dd if=/dev/mmcblk0 | gzip -1 -" | dd of="remote-machine-$(date +%F).gz"
This comes useful when you need to back up a remote SBC.
ssh user@remote-machine "sudo -S dd if=/dev/mmcblk0 | gzip -1 -" | dd of="remote-machine-$(date +%F).gz"