Resume a scp transfer

04 Mar 2010 at 00:00:00 - 5 comment(s)

You are copying big files using scp and unfortunately the transfer fails. You get "stalled". You have already copied 80% of the file and you don't want to start from the beginning especially because it could fail again. Here is the solution to your problem. How to resume a scp transfer? Using rsync.

The command is:

rsync --partial --progress --rsh=ssh user@host:/path/remote_file local_file

An other tip about scp. How to limit the transfer speed:

scp -l 100000 local_file user@host:/path/remote_file

100000 which is the speed limit is in kbps.


Notify me of follow up comments