Skip to content

Commit

Permalink
fixes daemon not properly using create-/restore_backup
Browse files Browse the repository at this point in the history
  • Loading branch information
tadly committed Aug 20, 2018
1 parent 181083c commit 639e11f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions dups/daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ def _backup():
config.Config.get().reload()

self._notify('Starting new backup')
success, res = helper.error_handler(helper.create_backup, dry_run)
success, res = helper.error_handler(helper.create_backup, self.usr,
dry_run)

if success:
bak, status = res
Expand Down Expand Up @@ -138,8 +139,8 @@ def _restore():
config.Config.get().reload()

self._notify('Starting restore')
success, res = helper.error_handler(helper.restore_backup, items,
name, target, dry_run)
success, res = helper.error_handler(
helper.restore_backup, self.usr, items, name, target, dry_run)
if success:
bak, status = res
self._notify('Finished restore', status.message)
Expand Down

0 comments on commit 639e11f

Please sign in to comment.