Excludes reference, in case it is also located, to keep it.

This commit is contained in:
Naglfar 2021-10-13 11:45:33 +02:00
parent ca4d4ff32a
commit b6ce9dae46
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ else
TYPE=full
rm -f $BACKUPS/*.snapshot
# Remove dumps and the previous backup if there is another one.
find $BACKUPS -name "*tgz" ! -newer $LEVEL0 -exec rm {} \;
find $BACKUPS -name "*tgz" ! -newer $LEVEL0 ! -wholename $LEVEL0 -exec rm {} \;
fi
nice tar -cz \