enterprisemediawiki / meza

Setup an enterprise MediaWiki server with simple commands
MIT License
41 stars 27 forks source link

31.13.0 release #1280

Closed jamesmontalvo3 closed 3 years ago

jamesmontalvo3 commented 3 years ago

Meza 31.13.0

Add new backups-cleanup method

Commits since 31.12.0

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.