How to gzip a directory, transfer via scp, and decompress in one command?

listed in answer

How to gzip a directory, transfer via scp, and decompress in one command?
0 votes, 0.00 avg. rating (0% score)

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.

by AaronM from http://superuser.com/questions/421790