Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using gzip in a pipe

Status
Not open for further replies.

columb

IS-IT--Management
Feb 5, 2004
1,231
EU
I need to copy some big (10 - 20Gb) files between two systems. To reduce network traffic I want to compress them in line. I'm looking at something like
Code:
ssh remote_host "gzip -c filename" | gzip -dc >> filename
but it doesn't want to work like that. Can anyone give me any pointers.
Thanks

Columb Healy
 
Thanks p5wizard - that's exactly what I wanted

Columb Healy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top