b4bf0214bccad94bf8f06ae49b899f13d0101390
[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)" ]; 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)"