From 193cb1034eb79f624d39b02bb02ee696ede2ac1b Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sun, 5 Oct 2014 00:50:34 +0200 Subject: [PATCH] Support different maxnumfull per-filesystem. --- backup.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backup.sh b/backup.sh index c3143d7..2a6d666 100755 --- 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)) -- 2.39.2