bba5624 Add backups cleanup that goes into each wiki dir for better cleanup options
New config
Allows new config like:
#
# Cleanup backups hourly, keeping only the latest of:
# - *wiki.sql: Backups generated from this server prior to performing database modifications
# - *wiki_push.sql: Backups generated from another server and pushed onto this server for overwrite purposes
#
backups_cleanup:
crontime: "0 * * * *"
removal_rules_each_wiki:
- "rm $(ls -F *_wiki.sql | head -n -1) -f"
- "rm $(ls -F *_wiki_push.sql | head -n -1) -f"
This will keep the /opt/data-meza/backups/<environment name>/<wiki id> clean, with only the latest *_wiki.sql and *_wiki_push.sql files.
Meza 31.13.0
Add new backups-cleanup method
Commits since 31.12.0
New config
Allows new config like:
This will keep the
/opt/data-meza/backups/<environment name>/<wiki id>
clean, with only the latest*_wiki.sql
and*_wiki_push.sql
files.