slaprunner: import script: exclude pid, sock and .installed.cfg files from rsync.

Obvious effect: don't consider processes like mysql as running if it comes from another partition (case of erp5testnode).
Less obvious effect: don't sync/delete supervisord.sock.
Less obvious effect: in erp5testnode, don't uninstall things from main instace when running buildout of instance of clone runner instance.
parent c0f127c2
......@@ -52,7 +52,7 @@ mode = 0644
recipe = hexagonit.recipe.download
url = ${:_profile_base_location_}/template/runner-import.sh.jinja2
download-only = true
md5sum = 2856977fe6d7d5886c4fb97f445709f7
md5sum = 40c1e8e5460661e61bf209c3192d4ddf
filename = runner-import.sh.jinja2
mode = 0644
......
......@@ -13,7 +13,7 @@ restore_element () {
do
cd $backup_path;
if [ -f $element ] || [ -d $element ]; then
{{ rsync_binary }} -av --delete $backup_path/$element $restore_path;
{{ rsync_binary }} -av --delete --exclude *.sock --exclude *.pid --exclude .installed.cfg --exclude .installed-switch-softwaretype.cfg $backup_path/$element $restore_path;
fi
done
}
......
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