[CentOS] ssh and dd

Sat Jul 24 01:34:14 UTC 2010
Les Mikesell <lesmikesell at gmail.com>

Joseph L. Casale wrote:
> Tonight I have to boot a diskless server with iLO and dd a remote image available by ssh
> onto a usb key. As there is no local place to store the image, whats the most efficient
> cmd to push the image from the remote server using ssh into the local pipe pushing out
> to `dd of=/dev/sdx`?
> 
> Would a remote execution of `dd if=/dev/sdx` be the best over ssh? I suppose I could use
> nc and do away with ssh, is that in the CentOS rescue mode?
> 

dd over ssh should be a sure thing.  If you do a lot of image copies remote or 
otherwise you might want to try clonezilla-live.  It knows enough about most 
file systems to only copy the used blocks and can access the image store with 
smb, nfs, or ssh.

-- 
   Les Mikesell
    lesmikesell at gmail.com