Take the 2-minute tour ×  I am retrieving a large files using
SCP (from a linux system to a Windows system), now is there any
way of compressing that destination file on the fly, for
example:  pscp -C root@ Backups\backupdestination.bin  So
"backupdestination.bin" would be compressed on the destination
drive on the fly.  e.g. C:\backups\backupdestination.zip rather
than C:\backups\backupdestination.bin  share|improve this
question add comment  2 Answers  Don't use scp, use ssh :)  The
target machine can then "catch" the data. For your example:  ssh
root@ "cat /backups/backup1.bin"|gzip -9
-|Backups\backupdestination.bin  This whole scheme will work
with anything that can take a contiguous stream of data from
stdin and then process it. I'm not aware - off-hand - of a tool
that creates ZIP files this way, though. In particular because
ZIP files contain the meta-data such as file name and timestamp.
share|improve this answer Hello, The only issue is that the
command is being run from a windows machine :( –  Jam