Commit adabd568 authored by Antoine Catton's avatar Antoine Catton

Use --force on duplicity to restore backup

parent c6ab5223
...@@ -37,8 +37,8 @@ class Recipe(GenericBaseRecipe): ...@@ -37,8 +37,8 @@ class Recipe(GenericBaseRecipe):
options = ['--no-encryption', '--archive-dir', self.options['cache']] options = ['--no-encryption', '--archive-dir', self.options['cache']]
if self.optionIsTrue('recover', False): if self.optionIsTrue('recover', False):
# duplicity restore [options] remote backup options.append('--force')
cmd.append('restore') # duplicity [options] remote backup
cmd.extend(options) cmd.extend(options)
cmd.extend([remote_url, backup_directory]) cmd.extend([remote_url, backup_directory])
else: else:
......
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