Excludes reference, in case it is also located, to keep it.
This commit is contained in:
parent
ca4d4ff32a
commit
b6ce9dae46
|
@ -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 \
|
||||
|
|
Loading…
Reference in New Issue