Commit 06aaee0f authored by Nicolas Wavrant's avatar Nicolas Wavrant

resilient: export script should try several times before definitely failing

The more there is data to backup, the more likely something can go wrong.
Running the exporter script several times will copy less and less things
at each run, so it should increase the probability to succeed.
parent f9e2330e
...@@ -59,7 +59,7 @@ mode = 0644 ...@@ -59,7 +59,7 @@ mode = 0644
recipe = slapos.recipe.template recipe = slapos.recipe.template
url = ${:_profile_base_location_}/pbsready-export.cfg.in url = ${:_profile_base_location_}/pbsready-export.cfg.in
output = ${buildout:directory}/pbsready-export.cfg output = ${buildout:directory}/pbsready-export.cfg
md5sum = 031fb7785cd5e99c2d794fa7e00e5190 md5sum = 793f1843a643b3c91b658eca2bad5abc
mode = 0644 mode = 0644
[template-pull-backup] [template-pull-backup]
......
...@@ -57,6 +57,7 @@ executable = $${exporter:wrapper} ...@@ -57,6 +57,7 @@ executable = $${exporter:wrapper}
wrapper = $${rootdirectory:bin}/exporter wrapper = $${rootdirectory:bin}/exporter
notify = $${slap-parameter:notify} notify = $${slap-parameter:notify}
pidfile = $${resilient-directory:pid}/$${:name}.pid pidfile = $${resilient-directory:pid}/$${:name}.pid
max-run = 3
[notifier-exporter-promise] [notifier-exporter-promise]
recipe = slapos.recipe.template:jinja2 recipe = slapos.recipe.template:jinja2
......
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