Saturday, January 21, 2017

Resuming an interrupted scp tranfer

If we stop an scp tranfer, we can resume it by using rsync in the following way:

rsync -P -e ssh local_file user@host:remote_file

We can also do a full wildcard transfer on a custom port by using the following:

rsync -r -v -P -e "ssh -p 2222" "*" .

If we want to rate limit the transfer we can use the --bwlimit=50 option with the speed in kb/sec