Skip to content

Instantly share code, notes, and snippets.

@wolfhesse
Last active December 14, 2015 16:48
Show Gist options
  • Save wolfhesse/5117246 to your computer and use it in GitHub Desktop.
Save wolfhesse/5117246 to your computer and use it in GitHub Desktop.
rsync with non-standard ssh-port (22) commandline
# 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
@wolfhesse
Copy link
Author

goback in revisions for sample field-data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment