#!/bin/sh

#
# Sample cron script for incrementing backup levels, designed for
# placement into /etc/cron.daily
#
# Author: Brian Bassett <brianb@debian.org>
#

# Constants for days of the week
SUN=0
MON=1
TUE=2
WED=3
THU=4
FRI=5
SAT=6

# This is the day of the week that the Level 0 backup is made.
LVL0DAY=$TUE

# Backup!
/usr/bin/flexbackup -set all -level $(expr \( $(date +%w) - $LVL0DAY \) % 7)

