Sun Aug 2 15:31:54 PDT 2015

Efficient File Transfer with Unreliable Networks

Here is a useful command which allows you to copy a file from a server to your machine or vice versa. Instead of using scp it uses rsync. The advantage of rsync is that if your connection breaks during the transfer, and you are left with a partial file, when you restart the command, rsync will pick up from where it left off. And this, of course, will save you time.

rsync --partial --progress --rsh=ssh user@yourserver.xyz.com:/home/path/to/file.zip .

Posted by ZFS | Permanent link | File under: bash