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