Skip to content

Instantly share code, notes, and snippets.

@tkalfigo
Last active December 18, 2015 00:18
Show Gist options
  • Save tkalfigo/5695645 to your computer and use it in GitHub Desktop.
Save tkalfigo/5695645 to your computer and use it in GitHub Desktop.
How to resume an interrupted scp
$ rsync --partial --progress -av --rsh=ssh local_file [email protected]:~/
$ rsync --partial --progress -av --rsh=ssh [email protected]:~/remoteFolder/ ./localFolder/
Or shorter version
$ rsync -av -P -e ssh SRC DEST
If ssh is on a non default port:
$ rsync -av -P -e "ssh -p 32700" SRC DEST
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment