]> git.sesse.net Git - backup.sh/blobdiff - backup.sh
Fix a typo that would cause maxfull to be 0 sometimes.
[backup.sh] / 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