Commit ac7a2a93 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

runner.backup: not one option to rule all rsync

parent a9f0ef73
......@@ -72,7 +72,7 @@ class ExportRecipe(GenericBaseRecipe):
}
sync_element %(srv-directory)s/runner %(backup-directory)s/runner/ instance project proxy.db
# We sync .* appart
cd %(etc-directory)s; %(rsync-binary)s -avz --safe-links --delete .[^.]* %(backup-directory)s/etc/
cd %(etc-directory)s; %(rsync-binary)s -ptgovz .* %(backup-directory)s/etc/
sync_element %(etc-directory)s %(backup-directory)s/etc/ config.json ssh
if [ -d %(backup-directory)s/runner/software ]; then
rm %(backup-directory)s/runner/software/*
......@@ -123,7 +123,7 @@ class ImportRecipe(GenericBaseRecipe):
}
restore_element %(backup-directory)s/runner/ %(srv-directory)s/runner instance project proxy.db
restore_element %(backup-directory)s/etc/ %(etc-directory)s .[^.]* config.json ssh
cd %(backup-directory)s/etc/; %(rsync-binary)s --delete .[^.]* %(etc-directory)s;
cd %(backup-directory)s/etc/; %(rsync-binary)s -ptgovz .[^.]* %(etc-directory)s;
%(curl-binary)s --insecure -vg6L --max-time 5 %(backend-url)s/isSRReady;
""" % self.options)
self.createExecutable(wrapper, content=content)
......
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