- #sjekker om det er på tide med en full
- if [ -z "`find $storagedir/$computer/$sfilesystem/full/ -name \*tgz -mtime -$dagermellomfulle`" ]; then
+ # Check if we want a full backup - Debug statement that causes noise in cron mail:
+ # printf " $computer $filesystem: $confdir/fastfullbackupdag.$computer.$sfilesystem\n"
+ if [ -f $confdir/fastfullbackupdag.$computer.$sfilesystem ]; then
+ fullbackup_min_for_this_machine=$dagermellomfulleforfast
+ if [ "$DAY_OF_MONTH" = "`cat $confdir/fastfullbackupdag.$computer.$sfilesystem`" ]; then
+ backuplevel=full
+ fi
+ elif [ -f $confdir/fastfullbackupdag.$computer ]; then
+ fullbackup_min_for_this_machine=$dagermellomfulleforfast
+ if [ "$DAY_OF_MONTH" = "`cat $confdir/fastfullbackupdag.$computer`" ]; then
+ backuplevel=full
+ fi
+ else
+ fullbackup_min_for_this_machine=$dagermellomfulle
+ fi
+
+ if [ -z "`find $storagedir/$computer/$sfilesystem/full/ -name \*tgz -mtime -$fullbackup_min_for_this_machine`" ]; then