Last active
August 29, 2015 14:19
-
-
Save bluejedi/4579165bb3624dfd8d4b to your computer and use it in GitHub Desktop.
rsync with different port
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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