From: Alan Jack Pippin Date: Wed, 14 Jun 2006 22:10:03 +0000 (-0600) Subject: Added -I option to rsync to ignore timestamps and size when copying over a remote... X-Git-Tag: release-0.6~3 X-Git-Url: http://git.pippins.net/embedvideo/.git/static/images/%7Blink_ppi%7D?a=commitdiff_plain;h=c4767775f2f8882bdc28ecc6fc0e9d0c553577dd;p=backups%2F.git Added -I option to rsync to ignore timestamps and size when copying over a remote image. --- diff --git a/scripts/burn-imgs.sh b/scripts/burn-imgs.sh index a24df15..69d192f 100755 --- a/scripts/burn-imgs.sh +++ b/scripts/burn-imgs.sh @@ -30,7 +30,7 @@ if [[ $cacheburnimg == 1 && -d $cacheburnimgdir ]]; then rsync -av --exclude '*.mnt' $img* $cacheburnimgdir >> $logfile 2>&1 if [ $? != 0 ]; then sleep 60 - rsync -av --exclude '*.mnt' $img* $cacheburnimgdir >> $logfile 2>&1 + rsync -aIv --exclude '*.mnt' $img* $cacheburnimgdir >> $logfile 2>&1 if [ $? != 0 ]; then cat $logfile | mailx -s "backups: failed to cache $img to local dir $cacheburnimgdir !!!" $mailto exit 1