I was transferring a file from one system to another at work with scp when the connection dropped. It was a substantially sized file and I didn't want to start the transfer over again, but unfortunately scp doesn't support resume. That's when I remembered rsync. With rsync I was able to continue the transfer where it left off, and afterward I had the idea to set the following alias in my .bashrc file.
alias scp='rsync -vPe ssh'Now when I transfer files with scp, I'm really using rsync and I don't have to worry about flaky network drops.
Very cool! I have been frustrated by this before. I don't think I'll go so far as aliasing scp, but will give rsync a go next time I'm movin' weight!
ReplyDelete