Tuesday, May 18, 2010

scp doesn't support resuming? Use rsync

Since scp doesn't support resuming an interrupted download, rsync is the way to go for getting files from one place to another. And it's other functions are pretty good too.

Here's the command:

     rsync --partial --progress --rsh=ssh  :/target/directory

If you're not using the default ssh port, then you can do --rsh='ssh -p3022'