summaryrefslogtreecommitdiff
path: root/lbup/repository.py
diff options
context:
space:
mode:
Diffstat (limited to 'lbup/repository.py')
-rw-r--r--lbup/repository.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lbup/repository.py b/lbup/repository.py
index a0caf75..8275910 100644
--- a/lbup/repository.py
+++ b/lbup/repository.py
@@ -55,7 +55,7 @@ class Repo:
self.bup_dir = bup_dir
self.data_dir = data_dir
- def backup(self, tgts, gen_par2 = True):
+ def backup(self, tgts, *, gen_par2 = True, dry_run = False):
"""
Backup the supplied targets.
@@ -72,7 +72,7 @@ class Repo:
for tgt in tgts:
self._logger.info('Backing up %s...' % tgt.name)
try:
- res = tgt.save(self.data_dir)
+ res = tgt.save(self.data_dir, dry_run)
except Exception as e:
self._logger.exception('Exception backing up %s: %s' % (tgt.name, str(e)))
res = StepResult(False, str(e).encode('utf-8'))