Commit 44f3e021 authored by Nicolas Wavrant's avatar Nicolas Wavrant

resilient: adds promise for testing integrity of backups files in PBS

parent c7f71ecf
......@@ -8,6 +8,7 @@ parts =
cron-entry-logrotate
sshkeys-authority
sshkeys-openssh
backup-transfer-integrity-promise
## Monitor for pbs
monitor-base
......@@ -237,6 +238,19 @@ monitor-title = PBS Instance
monitor-password = $${htpasswd:passwd}
monitor-username = $${htpasswd:username}
#----------------
#--
#-- Resiliency promises.
[backup-transfer-integrity-promise]
recipe = slapos.recipe.template:jinja2
template = inline:
#!${dash:location}/bin/dash
cd $${directory:pbs-backup}
diff proof.signature $(find . -name backup.signature -maxdepth 2)
rendered = $${basedirectory:promises}/backup-transfer-integrity-promise
mode = 700
#----------------
#--
......
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