From ac8bcf8046cb01f9b1cb8027db6d351d3d798368 Mon Sep 17 00:00:00 2001 From: Naglfar Date: Sun, 3 Oct 2021 15:49:16 +0200 Subject: [PATCH] Perform number of dumps comparison --- roles/shell/files/usr/local/bin/backup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/shell/files/usr/local/bin/backup b/roles/shell/files/usr/local/bin/backup index 2fd1a4b..58d3271 100644 --- a/roles/shell/files/usr/local/bin/backup +++ b/roles/shell/files/usr/local/bin/backup @@ -8,7 +8,7 @@ DUMPS=7 LEVEL0=$(find $BACKUPS -name "*full.tgz") INCR=$(find $BACKUPS -name "*incremental.tgz" | wc -l) -if [ -e $LEVEL0 ] && [ $INCR -gt $DUMPS ] +if [ -e $LEVEL0 ] && [ $INCR -le $DUMPS ] then TYPE=incremental else