3 ms·
> scp a device to a remote host dd if=/dev/hda bs=512 | (ssh root@remote dd of=/dev/hdX bs=512) where bs=512 is the block size in bytes. Of course, the hdX
by progman 10y ago
> scp a device to a remote host
dd if=/dev/hda bs=512 | (ssh root@remote dd of=/dev/hdX bs=512)
where bs=512 is the block size in bytes. Of course, the hdX drive must be different from the remote hosts's main drive, otherwise dd won't complete :-)
- microcolonel 10y agoThat is not my point. I meant to say that scp itself will refuse to open the block device file for reading.