3 export PATH=$(dirname $0):/bin:/usr/bin:/sbin
5 # source the default configuration
8 # source the system specific configuration
9 [ -f /etc/lsbackups.conf ] && . /etc/lsbackups.conf
11 minutes=$(($backupeveryXdays * 1440 - 60))
13 if [ -n "$(find $lastbackupfile -mmin +$minutes)" -o -n "$(cat $statusfile | grep -i incomplete)" ]; then
14 echo "Running backups from cron..."
19 echo "Not running backups today. Backups were last run on $(<$lastbackupfile)"