]> git.sesse.net Git - backup.sh/commitdiff
Fix a typo that would cause maxfull to be 0 sometimes.
authorroot <root@samfundet.no>
Tue, 14 Oct 2014 14:52:56 +0000 (16:52 +0200)
committerroot <root@samfundet.no>
Tue, 14 Oct 2014 14:52:56 +0000 (16:52 +0200)
backup.sh

index cfac60723c6084aa1fdff420c4a86b1028225051..4ae63a364069e0968c5853ab61e47f4f1b045d31 100755 (executable)
--- a/backup.sh
+++ b/backup.sh
@@ -327,7 +327,7 @@ for filesystem in $filesystems; do
 
        # Check if this box has a custom number of full backups
        if [ -f $confdir/maksfulle.$computer.$sfilesystem ]; then
-               mf=$((`cat $confdir/maksfulle.$computer`+1))
+               mf=$((`cat $confdir/maksfulle.$computer.$sfilesystem`+1))
        elif [ -f $confdir/maksfulle.$computer ] ; then
                mf=$((`cat $confdir/maksfulle.$computer`+1))
        else