diff options
| author | SJP/farm <st33v@f3rr3t.com> | 2018-01-07 11:39:26 +1100 |
|---|---|---|
| committer | SJP/farm <st33v@f3rr3t.com> | 2018-01-07 11:39:26 +1100 |
| commit | a47b334de67241a446de48aa22ca31e5e01b4c7a (patch) | |
| tree | 7ddc4bc2bb8e7230cce1ff4e3edc6c414bc10264 | |
| parent | dd63d2deef86a75a2b33353287b65e3a0ba509b9 (diff) | |
Add ssh port to local config vars
| -rwxr-xr-x | rsync2eye.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/rsync2eye.sh b/rsync2eye.sh index 6385dd3..e3a4a28 100755 --- a/rsync2eye.sh +++ b/rsync2eye.sh @@ -11,6 +11,7 @@ src=remoteSystem:/path/to/photos localpicdir=~/localpix walrusmountpoint=/mnt/walrus/eye +sshport=22 # end of local.config vars if [ -e local.config ]; then @@ -26,7 +27,8 @@ if [ ! -d ${dst} ]; then fi echo "$(date). Starting to move images from stan." begin=$(date +"%s") -rsync -a --remove-source-files --include='*/' --include='*.jpg' --exclude='*' -e "ssh -p 51337" $src ${localpicdir}/stansCams +rsyncstr="-a --remove-source-files --include='*/' --include='*.jpg' --exclude='*'" +rsync ${rsyncstr} -e "ssh -p ${sshport} " $src ${localpicdir}/stansCams if [ $? -ne 0 ]; then echo "rsync from stan failed with exit code $? - exiting" |
