[PC-BSD Commits] r12694 - pcbsd/current/src-qt4/life-preserver/scripts
svn at pcbsd.org
svn at pcbsd.org
Wed Sep 7 09:09:42 PDT 2011
Author: kris
Date: 2011-09-07 09:09:42 -0700 (Wed, 07 Sep 2011)
New Revision: 12694
Modified:
pcbsd/current/src-qt4/life-preserver/scripts/check-backups.sh
Log:
Fix daily backup logic, make sure we properly start new backups when necessary
Modified: pcbsd/current/src-qt4/life-preserver/scripts/check-backups.sh
===================================================================
--- pcbsd/current/src-qt4/life-preserver/scripts/check-backups.sh 2011-09-07 16:06:59 UTC (rev 12693)
+++ pcbsd/current/src-qt4/life-preserver/scripts/check-backups.sh 2011-09-07 16:09:42 UTC (rev 12694)
@@ -29,6 +29,10 @@
year=`cat ${PDIRS}/${p}/last-timestamp | cut -d ':' -f 1`
mon=`cat ${PDIRS}/${p}/last-timestamp | cut -d ':' -f 2`
day=`cat ${PDIRS}/${p}/last-timestamp | cut -d ':' -f 3`
+ year=`expr $year \* 3`
+ cyear=`expr $cyear \* 3`
+ mon=`expr $mon \* 31`
+ cmon=`expr $cmon \* 31`
num1=`expr $cyear + $cmon + $cday`
num2=`expr $year + $mon + $day`
count=`expr $num1 - $num2`
More information about the Commits
mailing list