]> git.sesse.net Git - backup.sh/commitdiff
Support different maxnumfull per-filesystem.
authorSteinar H. Gunderson <sesse@samfundet.no>
Sat, 4 Oct 2014 22:50:34 +0000 (00:50 +0200)
committerSteinar H. Gunderson <sesse@samfundet.no>
Sat, 4 Oct 2014 22:50:34 +0000 (00:50 +0200)
backup.sh

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