Skip to content

Instantly share code, notes, and snippets.

@DrewDouglass
Last active June 9, 2020 18:53
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DrewDouglass/5e1167d36c2c0acd91f1 to your computer and use it in GitHub Desktop.
Save DrewDouglass/5e1167d36c2c0acd91f1 to your computer and use it in GitHub Desktop.
Rsync from remote to local with custom ssh port
# Simple with recursion and info/progress
rsync -havzP --stats remote@host:/your/path ~/Desktop/your/folder
#Custom Port
rsync -chavzP --stats -e "ssh -p 1999" remote@host:/path/to/files ~/Desktop/local/folder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment