Commit 087267d3 authored by Julien Muchembled's avatar Julien Muchembled

erp5.zeo: make backup periodicity configurable

parent 01c8af3a
......@@ -14,6 +14,11 @@
"description": "Controls ZODB backup generation and retention (disabled if null)",
"default": {},
"properties": {
"periodicity": {
"description": "When to backup, specified in the same format as for systemd.time(7) calendar events (years & seconds not supported, DoW & DoM can not be combined)",
"default": "daily",
"type": "string",
},
"zodb-dict": {
"description": "Maps an export identifier to the path it must be backed up into",
"default": {},
......
......@@ -279,7 +279,7 @@ md5sum = 7735d535aa34dfdc18a776b80bc0ca3d
[template-zeo]
< = download-base
filename = instance-zeo.cfg.in
md5sum = 0493e0a1f59b0364f47a8093d1aac580
md5sum = d3fe0fbf75334cd6fa11cc250ef4e1d6
[template-zope]
< = download-base
......
......@@ -159,13 +159,12 @@ path = ${directory:promises}/tidstorage
[{{ section("cron-entry-tidstorage-backup") }}]
# TODO:
# - configurable periodicity
# - configurable full/incremental
# - configurable retention
recipe = slapos.cookbook:cron.d
cron-entries = ${cron:cron-entries}
name = tidstorage
frequency = 0 0 * * *
time = {{ tidstorage_dict.get('periodicity', 'daily') }}
command = ${tidstorage:repozo-wrapper}
[{{ section("logrotate-tidstorage") }}]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment