dd restore command

Dale Farnsworth dale at farnsworth.org
Wed May 9 17:13:25 MST 2007


In article <718E547AE93F08469653AC2CB76D002801159F70 at Server2003.Cornerstonehome.com> you write:
> -=-=-=-=-=-
> -=-=-=-=-=-
> 
> I am not very good with dd, or pipes for that matter, so I need some
> help.  I need a command executed on KnoppixClientB to take IMAGE.gz
> stored on ServerA and restore a hard drive.  I tried executing the
> following from KnoppixClientB
> 
> root at Knoppix:/ramdisk/home/knoppix# dd of= /dev/sda | ssh -c blowfish
> user at ServerA "gunzip -c | dd if =/home/IMAGE.gz" 
> 
> But Knoppix just hangs after I enter the password for ServerA.  

I would do:
ssh -c blowfish user at ServerA "dd if=/home/IMAGE.gz" | gunzip -c |
	dd of=/dev/sda

Dale Farnsworth


More information about the PLUG-discuss mailing list