From 3bc98c513aa4c45391a1b57b7cf42e0ebbb7faf9 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sun, 5 Oct 2014 00:39:26 +0200 Subject: [PATCH] Englishify a bit more. --- backup.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/backup.sh b/backup.sh index c09d0df..4489727 100755 --- a/backup.sh +++ b/backup.sh @@ -28,9 +28,9 @@ computer=$1 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 @@ -235,17 +235,17 @@ do # 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 @@ -262,7 +262,7 @@ do if [ -f $confdir/maksfulle.$computer ] ; then mf=$((`cat $confdir/maksfulle.$computer`+1)) else - mf=$(($maksantallfulle+1)) + mf=$(($maxnumfull+1)) fi # Delete old full backups -- 2.39.2