I want to backup a disk from a remote system, but the remote system itself has not enough space available. Now I want to use ddand pipe the output through ssh, but I can't figure out how to do it. I read several sources on the web, but I'm stuck now.

Can someone please point me to a good resource or write down the command line with explanations?

link|improve this question

60% accept rate
feedback

1 Answer

Ok, I figured it out:

ssh target_address dd if=remotefile | dd of=localfile

If you fill out the placeholders, you get something like this:

ssh -C username@192.168.1.123 if=/dev/sda | dd of=mydiskimage.img
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.