[CentOS-virt] dd trough scp with tar

Fri Apr 25 21:02:23 UTC 2008
Sean Dilda <sean at duke.edu>

David Hlác(ik wrote:

> *so my input will be dd if=/dev/sda1 , my output will be gzipped or 
> tarred image on second side. sda1.img.gz*
> ** 
>
I haven't had a chance to test this, but something like:

dd if=/dev/sda1 | gzip | ssh user at host /tmp/somescript

And /tmp/somescript on 'host' can be something like:   gunzip | dd 
of=/dev/sdb1