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):
options = ['--no-encryption', '--archive-dir', self.options['cache']]
if self.optionIsTrue('recover', False):
# duplicity restore [options] remote backup
cmd.append('restore')
options.append('--force')
# duplicity [options] remote backup
cmd.extend(options)
cmd.extend([remote_url, backup_directory])
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