From 684b4d30fa2aaa95ed4a74d90ed56880d054d328 Mon Sep 17 00:00:00 2001 From: SJP/farm Date: Sun, 7 Jan 2018 11:59:23 +1100 Subject: Add stats paramter to rsync --- rsync2eye.sh | 4 ++-- 1 file 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)) -- cgit v1.3