Commit 12840fab authored by Nicolas Wavrant's avatar Nicolas Wavrant

erp5: do not calculate sha256sum of repozo backups

parent d1fdaed7
......@@ -78,7 +78,7 @@ md5sum = 83e69244728a0d323f535dd3e8b734b6
[template-zeo]
filename = instance-zeo.cfg.in
md5sum = 47b2759adcdf784359d2e015ef3fae55
md5sum = 9696b4d573262edb2b91bf5f8c878766
[template-zope]
filename = instance-zope.cfg.in
......
......@@ -112,6 +112,26 @@ mode = 644
template = {{ 'inline:{{ "${directory:zodb}/**\\n${directory:log}\\n" }}' }}
rendered = ${directory:srv}/exporter.exclude
[{{ section("resiliency-identity-signature-scrip")}}]
# Generate identity script used by webrunner to check data integrity
# It excludes repozo files as they already include a hash function
# used to check backups when rebuilding the datafs
recipe = collective.recipe.template
input = inline: #!/bin/env python2
import os
import subprocess
import sys
zodb_backup_directory = os.path.relpath("{{ default_backup_path }}")
for file in sys.stdin.read().split('\0'):
if os.path.relpath(file).startswith(zodb_packup_directory):
continue
else:
signature = subprocess.check_output(["sha256sum", file])
print "%s %s" % (signature, file)
output = ${directory:srv}/.backup_identity_script
mode = 755
[{{ section("resiliency-after-import-script") }}]
# Generate after import script used by importer instance of webrunner
recipe = collective.recipe.template
......
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