I want to rsync my local files with a backup which I have on a server which allows access from where I am right now only via a gateway. So I came up with the following
rsync -avz -r --stats --progress -e "ssh gateway.dot.com ssh server.dot.com:/home/myname/documents/" /home/myname/documents
and there is some communication going on as all the files get listed but at the summary at the end reveals that there was actually no file trasfer at all.
Number of files: 270889 Number of files transferred: 0 Total file size: 70343212868 bytes Total transferred file size: 0 bytes Literal data: 0 bytes Matched data: 0 bytes File list size: 7596005 File list generation time: 0.001 seconds File list transfer time: 0.000 seconds Total bytes sent: 7613770 Total bytes received: 17764 sent 7613770 bytes received 17764 bytes 50707.87 bytes/sec total size is 70343212868 speedup is 9217.44