Sunday, July 26, 2009

scp with resume

scp is very handy tool to securely copy files from remote computer. One disadvantage with it is, it doesn't support resume. With little trick and little help from the command rsync we can securely copy files from remote computer with resume facility.

And the command is
rsync --partial --progress --rsh=ssh username@host:remote_file local_file

1 comment:

  1. One problem i had was that i'd tunnelled the ssh port.
    To use a non-default, do "--rsh='ssh -p '".
    Seems to work for me, but is this the best way?

    ReplyDelete

Comments are moderated. No spam please.