LOCKFILE=/home/backup/backuprun.lockfile.$computer
confdir=/home/backup/conf/ # Configuration files
storagedir=/backup # Where we keep backups
-maksantallfulle=3 # Number of full backups
-dagermellomfulle=30 # Days between full backups
-dagermellomfulleforfast=32 # Days between full backups for machines with fixed
+maxnumfull=3 # Number of full backups
+daysbetweenfull=30 # Days between full backups
+daysbetweenfullforfixed=32 # Days between full backups for machines with fixed
# full-backup date (in case the fixed day gets missed)
DAY_OF_MONTH=`date "+%d" | sed s/^0//` # from 1 to 31
DATE=`date "+%Y%m%d%H%M"` #format: touch
# Check if we want a full backup
if [ -f $confdir/fastfullbackupdag.$computer.$sfilesystem ]; then
- fullbackup_min_for_this_machine=$dagermellomfulleforfast
+ fullbackup_min_for_this_machine=$daysbetweenfullforfixed
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
+ fullbackup_min_for_this_machine=$daysbetweenfullforfixed
if [ "$DAY_OF_MONTH" = "`cat $confdir/fastfullbackupdag.$computer`" ]; then
backuplevel=full
fi
else
- fullbackup_min_for_this_machine=$dagermellomfulle
+ fullbackup_min_for_this_machine=$daysbetweenfull
fi
if [ -z "`find $storagedir/$computer/$sfilesystem/full/ -name \*tgz -mtime -$fullbackup_min_for_this_machine`" ]; then
if [ -f $confdir/maksfulle.$computer ] ; then
mf=$((`cat $confdir/maksfulle.$computer`+1))
else
- mf=$(($maksantallfulle+1))
+ mf=$(($maxnumfull+1))
fi
# Delete old full backups