Rsync only copies over the changed parts of a file. So if I have a large data dump, for example a SQL database in text format, and I want to copy it to my local machine using as little bandwidth as possible, what should I do?
I can leave it as uncompressed text and use rsync with the -z switch, or I can gzip it on the server and rsync the gzip file.
My suspicion is that a minor change in the source SQL text file could result in a larger shuffling around of data in the compressed gzip version, so rsync would have to do more work as more of the file has changed.
Also, since the -z switch is performing compression anyway, this could be the most efficient. However, I'm not sure.