ab6b47d4aebb676493d3fd44d37f0a80c7f6648e
[backups/.git] / scripts / cron.sh
1 #!/bin/sh
2
3 export PATH=$(dirname $0):/bin:/usr/bin
4
5 . config.sh
6
7 if [ -n "$(find $lastbackupfile -mtime +14)" -o -n "$(cat $statusfile | grep -i incomplete)" ]; then
8   echo "Running backups from cron..."
9   exec pack-image.sh
10 fi
11
12 echo "Not running backups today.  Backups were last run on $(<$lastbackupfile)"