Some fixes to burn script
[backups/.git] / scripts / cron.sh
index b4bf0214bccad94bf8f06ae49b899f13d0101390..ab6b47d4aebb676493d3fd44d37f0a80c7f6648e 100755 (executable)
@@ -4,7 +4,7 @@ export PATH=$(dirname $0):/bin:/usr/bin
 
 . config.sh
 
-if [ -n "$(find $lastbackupfile -mtime +14)" ]; then
+if [ -n "$(find $lastbackupfile -mtime +14)" -o -n "$(cat $statusfile | grep -i incomplete)" ]; then
   echo "Running backups from cron..."
   exec pack-image.sh
 fi