mirror of
https://github.com/ThunixdotNet/ansible.git
synced 2026-01-24 21:40:17 +00:00
Perform number of dumps comparison
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user