Perform number of dumps comparison

This commit is contained in:
Naglfar 2021-10-03 15:49:16 +02:00
parent cf22ee03f1
commit ac8bcf8046
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ DUMPS=7
LEVEL0=$(find $BACKUPS -name "*full.tgz") LEVEL0=$(find $BACKUPS -name "*full.tgz")
INCR=$(find $BACKUPS -name "*incremental.tgz" | wc -l) INCR=$(find $BACKUPS -name "*incremental.tgz" | wc -l)
if [ -e $LEVEL0 ] && [ $INCR -gt $DUMPS ] if [ -e $LEVEL0 ] && [ $INCR -le $DUMPS ]
then then
TYPE=incremental TYPE=incremental
else else