Last active
December 14, 2015 16:48
-
-
Save wolfhesse/5117246 to your computer and use it in GitHub Desktop.
rsync with non-standard ssh-port (22) commandline
This file contains 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
# r20130829 reform, make-callable | |
# rsync --rsh="ssh -p {ssh-port}" {local-path} {user}@{ip-add}:{path}/ | |
PORT=$1 | |
LOCAL_PATH=$2 | |
USER=$3 | |
IP_ADDRESS=$4 | |
REMOTE_PATH=$5 | |
rsync -rsh="ssh -p $PORT" $LOCAL_PATH $USER@$IP_ADDRESS:$REMOTE_PATH | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
goback in revisions for sample field-data