Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Nicolas Wavrant
slapos
Commits
12840fab
Commit
12840fab
authored
Nov 09, 2018
by
Nicolas Wavrant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5: do not calculate sha256sum of repozo backups
parent
d1fdaed7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
1 deletion
+21
-1
stack/erp5/buildout.hash.cfg
stack/erp5/buildout.hash.cfg
+1
-1
stack/erp5/instance-zeo.cfg.in
stack/erp5/instance-zeo.cfg.in
+20
-0
No files found.
stack/erp5/buildout.hash.cfg
View file @
12840fab
...
...
@@ -78,7 +78,7 @@ md5sum = 83e69244728a0d323f535dd3e8b734b6
[template-zeo]
filename = instance-zeo.cfg.in
md5sum =
47b2759adcdf784359d2e015ef3fae55
md5sum =
9696b4d573262edb2b91bf5f8c878766
[template-zope]
filename = instance-zope.cfg.in
...
...
stack/erp5/instance-zeo.cfg.in
View file @
12840fab
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment