[PC-BSD Commits] r15717 - pcbsd/current/src-qt4/life-preserver/scripts

svn at pcbsd.org svn at pcbsd.org
Tue Mar 6 08:32:25 PST 2012


Author: kris
Date: 2012-03-06 16:32:25 +0000 (Tue, 06 Mar 2012)
New Revision: 15717

Modified:
   pcbsd/current/src-qt4/life-preserver/scripts/backup-rsync.sh
Log:

Don't fail backup if fine vanishes during backup



Modified: pcbsd/current/src-qt4/life-preserver/scripts/backup-rsync.sh
===================================================================
--- pcbsd/current/src-qt4/life-preserver/scripts/backup-rsync.sh	2012-03-06 16:13:32 UTC (rev 15716)
+++ pcbsd/current/src-qt4/life-preserver/scripts/backup-rsync.sh	2012-03-06 16:32:25 UTC (rev 15717)
@@ -109,7 +109,9 @@
 
 RESULT="$?"
 
-if [ "$RESULT" = "0" ]
+# Check the result, if 0, 23 or 24, we can take it as successful backup
+# This gets rid of failing because of a file disappearing during the backup
+if [ "$RESULT" = "0" -o "$RESULT" = "24" -o "$RESULT" = "23" ]
 then
   # Success!
   echo "Success: ${STARTDATE}" >${RESULTFILE}



More information about the Commits mailing list