How to gzip a directory, transfer via scp, and decompress in one command?
listed in answer
ANSWER:
How about using rsync instead with the -z option enabled for compression?
rsync -az --progress source_dir/* remote_host:/destination_dir
This also has the added benefit that if the file already exists and has not changed on the destination, it will not be transferred.

New Comments