Skip to content

Instantly share code, notes, and snippets.

@JAW-Dev
Created February 13, 2018 10:46
Show Gist options
  • Save JAW-Dev/80ce1600590bc6f4190123c4137c3884 to your computer and use it in GitHub Desktop.
Save JAW-Dev/80ce1600590bc6f4190123c4137c3884 to your computer and use it in GitHub Desktop.
rsync to and from a remote server
rsync -rP --rsh='ssh -p Port' usename@domain:~/remote-directory/ /local-directory
rsync -rP --rsh='ssh -p Port' /local-directory usename@domain:~/remote-directory/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment