[lug] dd ssh pipe to bzip?

Paul Nowosielski paulnowosielski at yahoo.com
Wed Nov 17 14:04:06 MST 2010


Hi!

Can someone give me a little advice 
on how to do this.

I'm running dd via ssh pipe and then I would like to
compress the output. I'm not sure how to do it so the 
receiving server compresses it.

# this is what I have so far
dd if=/dev/mapper/VolGroup00-LogVol00 | ssh offsite at dev -i 
/root/.ssh/id_dsa_offsite "dd of=gw2.iso"


# I tried this and a few variations but it didn't work
 dd if=/dev/mapper/VolGroup00-LogVol00 | ssh offsite at dev -i 
/root/.ssh/id_dsa_offsite "dd of=gw2.iso | cat |bzip2 "


Any suggestions?

Thank you,

Paul






More information about the LUG mailing list