Added -I option to rsync to ignore timestamps and size when copying over a remote...
[backups/.git] / scripts / burn-imgs.sh
index a24df15591ce9656cc2321dddefd8d1cc2f71475..69d192fd4c3ba92eb3d5adbcf1cb3b66d456084b 100755 (executable)
@@ -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