Skip to content

Instantly share code, notes, and snippets.

@bluejedi
Last active August 29, 2015 14:19
Show Gist options
  • Save bluejedi/4579165bb3624dfd8d4b to your computer and use it in GitHub Desktop.
Save bluejedi/4579165bb3624dfd8d4b to your computer and use it in GitHub Desktop.
rsync with different port
copy dari server ke local
rsync -avzPH -e "ssh -p $portNumber" user@remoteip:/path/to/files/ /local/path/
copy dari local ke server
rsync -avzPH /local/path/file -e "ssh -p $portNumber" user@remoteip:/path/to/serverFile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment