Friday, April 02, 2010

 

Robust File Transfers With Rsync

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 .
Comments: Post a Comment



<< Home
Newer Posts Older Posts