Tired of the SCP command dropping out in the middle of a transfer, and generally being unreliable? You can use the vastly superior rsync utility that supports resuming a dropped transfer—a killer feature when you’re moving big files around.
So what we’ll do is just set an alias to make scp use the correct rsync flags:
alias scp=’rsync avzP’
Of course, you’ll want to put this into your ~/.bashrc or bash_profile, depending on your system setup. Once you’ve done so, you can use the scp command just like you always did before, but it will use rsync instead of scp.
scp filename.zip username@servername:/path/to/filename.zip
It’s one of those really excellent tips that we love, and it was sent in by our buddy Daniel over at Code Commit. He’s nerdy!