diff options
| author | SJP/farm <st33v@f3rr3t.com> | 2018-01-07 11:59:23 +1100 |
|---|---|---|
| committer | SJP/farm <st33v@f3rr3t.com> | 2018-01-07 11:59:23 +1100 |
| commit | 684b4d30fa2aaa95ed4a74d90ed56880d054d328 (patch) | |
| tree | 9cf88b9e6ec8d403db62e53f6483e8ba073c7928 /rsync2eye.sh | |
| parent | 3346f06aabe0fdd84df220e9151000a66ea01f6e (diff) | |
Add stats paramter to rsync
Diffstat (limited to 'rsync2eye.sh')
| -rwxr-xr-x | rsync2eye.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rsync2eye.sh b/rsync2eye.sh index e5e9742..be3fd15 100755 --- a/rsync2eye.sh +++ b/rsync2eye.sh @@ -36,7 +36,7 @@ if [ ! -d ${dst} ]; then fi echo "$(date). Starting to move images from stan." begin=$(date +"%s") -rsyncstr="-a --remove-source-files --include='*/' --include='*.jpg' --exclude='*'" +rsyncstr="-a --remove-source-files --stats --include='*/' --include='*.jpg' --exclude='*'" rsync ${rsyncstr} -e "ssh -p ${sshport} " $src ${localpicdir}/stansCams if [ $? -ne 0 ]; then @@ -64,7 +64,7 @@ fi echo "Starting at $(date). Backing up pix to walrus." begin=$(date +"%s") -rsync -a ${localpicdir}/* ${walrusmountpoint} +rsync -a --stats ${localpicdir}/* ${walrusmountpoint} termin=$(date +"%s") difftimelps=$(($termin-$begin)) |
