mirror of
https://github.com/ThunixdotNet/ansible.git
synced 2026-11-06 20:05:41 +00:00
Keep a second backup set
This commit is contained in:
1 parent
d9c0078e2e
commit
2a4dddf376
1 file changed
+1
-1
@@ -6,7 +6,7 @@ BACKUPS=/var/backups
|
|||||||
DUMPS=7
|
DUMPS=7
|
||||||
|
|
||||||
LEVEL0=$(find $BACKUPS -name "*full.tgz" | sort | tail -n1)
|
LEVEL0=$(find $BACKUPS -name "*full.tgz" | sort | tail -n1)
|
||||||
INCR=$(find $BACKUPS -name "*incremental.tgz" | wc -l)
|
INCR=$(find $BACKUPS -name "*incremental.tgz" -newer $LEVEL0 | wc -l)
|
||||||
|
|
||||||
if [ ! -z $LEVEL0 ] && [ $INCR -le $DUMPS ]
|
if [ ! -z $LEVEL0 ] && [ $INCR -le $DUMPS ]
|
||||||
then
|
then
|
||||||
|
|||||||
Reference in new issue
Block a user