Need to transer a whole disk image to another computer over SSH?
dd if=/dev/sda | ssh user@host "dd of=/directory/imagefile"
or with compression:
dd if=/dev/sda | bzip2 |ssh user@host "dd of=/directory/imagefile"
or with compression on the receiving side:
dd if=/dev/sda | ssh user@host "bzip2 | dd of=/directory/imagefile"
This example can be expanded easily as:
cat filename |ssh user@host "dd of=/directory/filename"
also works quite fine.
The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.