Using DD Over SSH

The following command will do a disk copy over ssh.

 

# dd if=/dev/rdsk/c0t0d0s2 | ssh root@remotehost "dd of=/dev/rdsk/c0t0d0p0"

 

Or you can create a compressed disk image:

 

# dd if=/dev/sda1 | gzip -c | ssh filipi@10.30.46.11 'dd of=/opt/backups/big/filipi/disk.image.gz.