Perform number of dumps comparison
This commit is contained in:
parent
cf22ee03f1
commit
ac8bcf8046
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue