[plug] DD from inside an FTP session?

Brad Campbell brad at wasp.net.au
Wed Aug 30 17:40:26 WST 2006


Andrew Furey wrote:
>> > Can you just boot a live disk like Ubuntu Dapper or Knoppix?
>> > Then just do it manually.
>> >
>> > e.g. % gzip -c /dev/hda | some-ftp-program -blah
>>
>> AFAIK gzip wont do bit by bit.
> 
> Can you do SSH to the remote server? Perhaps something like
> 
> # dd if=/dev/hda bs=1024k | ssh user at server "dd of=backup.dat"
> 
> And then compress it from there. Seems to work to the local machine here...

I often do this with netcat.

On the server
nc -l -p 5050 | pipebench > backup.dat

On the client
dd if=/dev/hda bs=1M | gzip -9 | nc server 5050

Pipebench is a great little util for watching speed/total transferred bytes.. always keep a copy around.

Every time anyone asks me to do any major work on their machine, this is always the 1st step, so I 
can undo anything I might do wrong (especially when dealing with windows). I just boot knoppix on 
the box and 'ave at it.

Brad
-- 
"Human beings, who are almost unique in having the ability
to learn from the experience of others, are also remarkable
for their apparent disinclination to do so." -- Douglas Adams



More information about the plug mailing list