Skip to content

Instantly share code, notes, and snippets.

@maxterry
Last active April 17, 2017 17:45
Show Gist options
  • Save maxterry/23f72e72c3f60db7d824c3b87cce7dfb to your computer and use it in GitHub Desktop.
Save maxterry/23f72e72c3f60db7d824c3b87cce7dfb to your computer and use it in GitHub Desktop.
Sync local directory with server over SSH on a custom port using rsync
rsync -av -e 'ssh -p PORT' --update ~/directory user@IP:directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment