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/images/%27%20%20%20%20.%20%24GLOBALS%5B%27phpgw%27%5D-%3Elink%28%27inc/jquery/static/%3C?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