Commit 79b03abc authored by Antoine Catton's avatar Antoine Catton

Finalize duplicity recipe in order to have push and pull

parent a88bf182
master 1.0 agent arnau asterisk builtout2 cedric.ln-erp5-cluster cloudooo cloudooo-clusterise cloudooo-clusterise-split cygwin cygwin-0 cygwin-res-resstack davstorage-ajaxplorer dream drupal environment_object eos erp5 erp5-cluster erp5-cluster-0.1 erp5-cluster-fix-zeo-resilient erp5-cluster-resilient erp5-cluster-scalability erp5-cluster-z2.13 erp5-cluster-z2.13-scalability erp5-cluster-z2.13-scalability-N erp5-component erp5-component-draft-wsgi erp5-component-z2.12 erp5-frontend erp5-mysql-insecure-password erp5-postfix erp5-release erp5-rkm erp5-scikit erp5-split-tidstorage erp5-vifib erp5-z2.12 erp5tesnode erp5testnode-scalability erp5testnode-scalability-rebase-erp5testnode erp5testnode-seb erp5testnode_newfirefox etherpad-lite feature/jstestnode-ios-poc feature/jstestnode-rebased frontend-monitor-slave-configuration gcc-4.7 glpi grid-computing hexaglobe-watermarking hexaglobe-watermarking-replicated hotfix/wendelin-test-runner html5-dev-sr improved-hello-world inkscape-test instance-state ipython ivan klaus-ebusiness-lotse kvm-cluster kvm-iaas lamp-edge-jinja mac manual-kvm mkr new-frontend nginx-push-stream officejs_testrunner openstack palo postfix postgres powerdns rafael_agent reafs/heads/ipython recipe-test request-recipe scikit-notmerge sitemon skynet slapos slapos-master-cluster slappromise slaprunner slaprunner-paas systematic systematic-nginx trac tristan-erp5-cluster tristan-tmp varnish webrunner.custom-personal wordpress wordpress-nginx zabbix-upload-monitor zerovm zerovm-test zimbra zimbra-kvm 1.0.18 1.0.17 1.0.16 1.0.15 1.0.14 1.0.13 1.0.12 1.0.11 1.0.10 1.0.9 1.0.8.1 1.0.8 1.0.7 1.0.6 1.0.5 1.0.4 1.0.3 1.0.2 1.0.1 vifib-20150331 vifib-20150203 vifib-20150130 vifib-20150123 vifib-20150116 vifib-20141222 vifib-20141119 slaprunner-resilient-v1 slaprunner-resilient-v1-RC1 slapos.core-1.0.0rc6-1 slapos.cookbook-0.102 slapos.cookbook-0.101 slapos.cookbook-0.100 slapos.cookbook-0.99 slapos.cookbook-0.98 slapos.cookbook-0.97 slapos.cookbook-0.96 slapos.cookbook-0.95 slapos.cookbook-0.94 slapos.cookbook-0.93 slapos.cookbook-0.92 slapos.cookbook-0.91 slapos.cookbook-0.90 slapos.cookbook-0.89 slapos.cookbook-0.88 slapos.cookbook-0.87 slapos.cookbook-0.86 slapos.cookbook-0.85 slapos.cookbook-0.84.2 slapos.cookbook-0.84.1 slapos.cookbook-0.84 slapos.cookbook-0.83.1 slapos.cookbook-0.83 slapos.cookbook-0.82 slapos.cookbook-0.81 slapos.cookbook-0.80 slapos.cookbook-0.79 slapos.cookbook-0.78.5 slapos.cookbook-0.78.4 slapos.cookbook-0.78.3 slapos.cookbook-0.78.2 slapos.cookbook-0.78.1 slapos.cookbook-0.78.0 slapos.cookbook-0.77.1 slapos.cookbook-0.77.0 slapos.cookbook-0.76.0 slapos.cookbook-0.75.0 slapos.cookbook-0.74.0 slapos.cookbook-0.73.1 slapos.cookbook-0.72.0 slapos.cookbook-0.71.4 slapos.cookbook-0.71.3 slapos.cookbook-0.71.2 slapos.cookbook-0.71.1 slapos.cookbook-0.71 slapos.cookbook-0.70 slapos.cookbook-0.69 slapos.cookbook-0.68.1 slapos.cookbook-0.68 slapos.cookbook-0.67 slapos.cookbook-0.66 slapos.cookbook-0.64.2 slapos.cookbook-0.64.1 slapos.cookbook-0.64 slapos.cookbook-0.63 slapos.cookbook-0.62 slapos.cookbook-0.61 slapos.cookbook-0.60 slapos.cookbook-0.59 slapos.cookbook-0.58 slapos.cookbook-0.57 slapos.cookbook-0.55 slapos.cookbook-0.54.1 slapos.cookbook-0.54 slapos.cookbook-0.53 slapos.cookbook-0.51 slapos.cookbook-0.50 slapos.cookbook-0.49 slapos.cookbook-0.48 slapos.cookbook-0.47 slapos.cookbook-0.46 slapos.cookbook-0.45 slapos.cookbook-0.44 slapos.cookbook-0.43 slapos.cookbook-0.42 slapos.cookbook-0.41 slapos.cookbook-0.40.1 slapos.cookbook-0.40 slapos.cookbook-0.39 slapos-legacy-flask-stack slapos-159 slapos-0.271 slapos-0.270 slapos-0.269 slapos-0.268 slapos-0.267 slapos-0.266 slapos-0.265 slapos-0.264 slapos-0.263 slapos-0.262 slapos-0.261 slapos-0.260 slapos-0.259.2 slapos-0.259.1 slapos-0.259 slapos-0.258 slapos-0.257 slapos-0.256 slapos-0.255 slapos-0.254 slapos-0.253.3 slapos-0.253.2 slapos-0.253.1 slapos-0.253 slapos-0.252.1 slapos-0.252 slapos-0.251 slapos-0.250.2 slapos-0.250.1 slapos-0.250 slapos-0.249.1 slapos-0.249 slapos-0.248.1 slapos-0.248 slapos-0.247.1 slapos-0.247 slapos-0.246 slapos-0.245 slapos-0.244 slapos-0.243 slapos-0.242 slapos-0.241 slapos-0.240.0 slapos-0.240 slapos-0.239 slapos-0.238 slapos-0.237 slapos-0.236 slapos-0.235 slapos-0.234 slapos-0.233 slapos-0.232 slapos-0.231 slapos-0.230 slapos-0.229 slapos-0.228 slapos-0.227 slapos-0.226 slapos-0.225 slapos-0.224 slapos-0.223.1 slapos-0.223 slapos-0.222 slapos-0.221 slapos-0.220 slapos-0.219 slapos-0.218.2 slapos-0.218.1 slapos-0.218 slapos-0.217 slapos-0.217-B1 slapos-0.216 slapos-0.215 slapos-0.214 slapos-0.213 slapos-0.212 slapos-0.211 slapos-0.210 slapos-0.209 slapos-0.208 slapos-0.207 slapos-0.206 slapos-0.205 slapos-0.204 slapos-0.203 slapos-0.202 slapos-0.201 slapos-0.200 slapos-0.199 slapos-0.199-hotfix-20140409 slapos-0.198 slapos-0.197 slapos-0.196 slapos-0.195 slapos-0.194-RC3 slapos-0.194-RC2 slapos-0.194-RC1 slapos-0.193 slapos-0.192 slapos-0.191 slapos-0.190 slapos-0.189 slapos-0.188 slapos-0.187 slapos-0.186 slapos-0.185 slapos-0.184 slapos-0.183 slapos-0.182 slapos-0.181 slapos-0.180 slapos-0.179 slapos-0.178 slapos-0.177.5 slapos-0.177.4 slapos-0.177.3 slapos-0.177.2 slapos-0.177.1 slapos-0.177 slapos-0.176.4 slapos-0.176.3 slapos-0.176.2 slapos-0.176.1 slapos-0.176 slapos-0.175 slapos-0.174 slapos-0.173 slapos-0.172 slapos-0.171 slapos-0.170 slapos-0.169 slapos-0.168.9 slapos-0.168.8 slapos-0.168.7 slapos-0.168.6 slapos-0.168.5 slapos-0.168.4 slapos-0.168.3 slapos-0.168.2 slapos-0.168.1 slapos-0.168 slapos-0.167 slapos-0.166 slapos-0.165 slapos-0.164 slapos-0.163 slapos-0.162 slapos-0.161 slapos-0.160 slapos-0.159 slapos-0.158 slapos-0.157 slapos-0.156 slapos-0.155 slapos-0.154 slapos-0.153 slapos-0.152 slapos-0.151 slapos-0.150 slapos-0.149 slapos-0.148 slapos-0.147 slapos-0.146 slapos-0.145 slapos-0.144 slapos-0.143 slapos-0.142 slapos-0.141 slapos-0.140 slapos-0.139 slapos-0.138 slapos-0.137 slapos-0.136 slapos-0.135.1 slapos-0.135 slapos-0.134 slapos-0.133 slapos-0.132 slapos-0.131 slapos-0.130 slapos-0.129 slapos-0.128 slapos-0.127 slapos-0.126 slapos-0.125 slapos-0.124 slapos-0.123 slapos-0.122 slapos-0.121 slapos-0.120 slapos-0.119 slapos-0.118 slapos-0.117.1 slapos-0.117 slapos-0.116 slapos-0.115 slapos-0.114 slapos-0.113 slapos-0.112 slapos-0.111 slapos-0.110 slapos-0.109 slapos-0.108 slapos-0.107 slapos-0.106 slapos-0.105 slapos-0.104 slapos-0.103 slapos-0.102 slapos-0.101 slapos-0.100 slapos-0.99 slapos-0.98.2 slapos-0.98.1 slapos-0.98 slapos-0.97 slapos-0.96 slapos-0.95 slapos-0.94 slapos-0.93 slapos-0.92 slapos-0.91 slapos-0.90 slapos-0.89 slapos-0.88 slapos-0.87 slapos-0.86 slapos-0.85 slapos-0.84 slapos-0.83 slapos-0.82 slapos-0.81 slapos-0.80 slapos-0.79 slapos-0.78 slapos-0.77 slapos-0.76 slapos-0.75.2 slapos-0.75.1 slapos-0.75 slapos-0.74 slapos-0.73.1 slapos-0.73 slapos-0.72 slapos-0.71 slapos-0.70 slapos-0.69 slapos-0.66 erp5-cluster-0.1.1 cygwin-resstack-3 cygwin-resstack-2 cygwin-resstack-1 cygwin-cachetest-4 cygwin-cachetest-3 cygwin-cachetest-2 cygwin-cachetest-1 apache_frontend_prod_test
No related merge requests found
......@@ -30,15 +30,23 @@ class Recipe(GenericBaseRecipe):
def install(self):
remote_url = self.options['remote_backup']
backup_directory = self.options['directory']
remote_url = self.options['remote-backup']
backup_directory = self.options['local-directory']
wrapper = self.createPythonScript(
self.options['wrapper'],
'slapos.recipe.librecipe.execute.execute',
[self.options['duplicity_binary'], '--no-encryption',
backup_directory, remote_url]
)
return [wrapper]
cmd = [self.options['duplicity-binary'],]
options = ['--no-encryption']
if self.optionIsTrue('recover', False):
# duplicity restore [options] remote backup
cmd.append('restore')
cmd.extend(options)
cmd.extend([remote_url, backup_directory])
else:
# duplicity [options] local remote
cmd.extend(options)
cmd.extend([backup_directory, remote_url])
wrapper = self.createPythonScript(self.options['wrapper'],
'slapos.recipe.librecipe.execute.execute', cmd)
return [wrapper]
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