mirror of
https://github.com/ThunixdotNet/ansible.git
synced 2026-01-24 21:40:17 +00:00
Keep a second backup set
This commit is contained in:
@@ -6,7 +6,7 @@ BACKUPS=/var/backups
|
||||
DUMPS=7
|
||||
|
||||
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 ]
|
||||
then
|
||||
|
||||
Reference in New Issue
Block a user