From 4533aa0434160aa4f3ad0f64cf16c175e8d5bd36 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=A9dric=20de=20Saint=20Martin?= <cedric.dsm@tiolive.com>
Date: Tue, 17 Feb 2015 10:26:01 +0100
Subject: [PATCH] erp5: add resiliency rsync exclude file to zeo instance.

---
 stack/erp5/buildout.cfg        | 2 +-
 stack/erp5/instance-zeo.cfg.in | 8 ++++++++
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/stack/erp5/buildout.cfg b/stack/erp5/buildout.cfg
index a0f1ff14a..8249d80d7 100644
--- a/stack/erp5/buildout.cfg
+++ b/stack/erp5/buildout.cfg
@@ -301,7 +301,7 @@ md5sum = 28db329061ae863367a76951b9b1152c
 [template-zeo]
 < = download-base
 filename = instance-zeo.cfg.in
-md5sum = e810ce0bf324a33d0d52d3ecda67bc4d
+md5sum = 5b8639e77217d4fbdee19338a25b6128
 
 [template-zope]
 < = download-base
diff --git a/stack/erp5/instance-zeo.cfg.in b/stack/erp5/instance-zeo.cfg.in
index 776f0bad7..194fc3cc3 100644
--- a/stack/erp5/instance-zeo.cfg.in
+++ b/stack/erp5/instance-zeo.cfg.in
@@ -117,6 +117,14 @@ tidstorage-ip =
 tidstorage-port =
 {% endif -%}
 
+# Used for ERP5 resiliency or (more probably)
+# webrunner resiliency with erp5 inside.
+[{{ section("resiliency-exclude-file") }}]
+# Generate rdiff exclude file
+recipe = collective.recipe.template
+input = inline: {{ default_zodb_path }}/**
+output = ${directory:srv}/exporter.exclude
+
 [directory]
 recipe = slapos.cookbook:mkdirectory
 bin = ${buildout:directory}/bin
-- 
2.30.9