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

erp5.zeo: make backup periodicity configurable

parent 01c8af3a
...@@ -14,6 +14,11 @@ ...@@ -14,6 +14,11 @@
"description": "Controls ZODB backup generation and retention (disabled if null)", "description": "Controls ZODB backup generation and retention (disabled if null)",
"default": {}, "default": {},
"properties": { "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": { "zodb-dict": {
"description": "Maps an export identifier to the path it must be backed up into", "description": "Maps an export identifier to the path it must be backed up into",
"default": {}, "default": {},
......
...@@ -279,7 +279,7 @@ md5sum = 7735d535aa34dfdc18a776b80bc0ca3d ...@@ -279,7 +279,7 @@ md5sum = 7735d535aa34dfdc18a776b80bc0ca3d
[template-zeo] [template-zeo]
< = download-base < = download-base
filename = instance-zeo.cfg.in filename = instance-zeo.cfg.in
md5sum = 0493e0a1f59b0364f47a8093d1aac580 md5sum = d3fe0fbf75334cd6fa11cc250ef4e1d6
[template-zope] [template-zope]
< = download-base < = download-base
......
...@@ -159,13 +159,12 @@ path = ${directory:promises}/tidstorage ...@@ -159,13 +159,12 @@ path = ${directory:promises}/tidstorage
[{{ section("cron-entry-tidstorage-backup") }}] [{{ section("cron-entry-tidstorage-backup") }}]
# TODO: # TODO:
# - configurable periodicity
# - configurable full/incremental # - configurable full/incremental
# - configurable retention # - configurable retention
recipe = slapos.cookbook:cron.d recipe = slapos.cookbook:cron.d
cron-entries = ${cron:cron-entries} cron-entries = ${cron:cron-entries}
name = tidstorage name = tidstorage
frequency = 0 0 * * * time = {{ tidstorage_dict.get('periodicity', 'daily') }}
command = ${tidstorage:repozo-wrapper} command = ${tidstorage:repozo-wrapper}
[{{ section("logrotate-tidstorage") }}] [{{ 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