mysqldb-backup.sh: fix storage-cleanup
This commit is contained in:
parent
85deb233f1
commit
e5d3ca222d
@ -41,6 +41,6 @@ chown $STOR_USER $TMPDIR/database-$NOW.tar.gz
|
||||
mv $TMPDIR/database-$NOW.tar.gz $STOR
|
||||
|
||||
# delete old files in storage
|
||||
find $STOR -mtime $STOR_DAYS -exec rm {} \;
|
||||
find $STOR -mtime +$STOR_DAYS -exec rm {} \;
|
||||
|
||||
rm -rf $TMPDIR
|
||||
|
Loading…
Reference in New Issue
Block a user