diff options
Diffstat (limited to 'rdiff-backup/rdiff_backup/Main.py')
-rw-r--r-- | rdiff-backup/rdiff_backup/Main.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/rdiff-backup/rdiff_backup/Main.py b/rdiff-backup/rdiff_backup/Main.py index 7f3662b..87243d6 100644 --- a/rdiff-backup/rdiff_backup/Main.py +++ b/rdiff-backup/rdiff_backup/Main.py @@ -471,7 +471,9 @@ def Restore(src_rp, dest_rp, restore_as_of = None): mirror file), dest_rp should be the target rp to be written. """ - if not restore_root_set: assert restore_set_root(src_rp) + if not restore_root_set and not restore_set_root(src_rp): + Log.FatalError("Could not find rdiff-backup repository at " + + src_rp.path) restore_check_paths(src_rp, dest_rp, restore_as_of) dest_rp.conn.fs_abilities.restore_set_globals(dest_rp) init_user_group_mapping(dest_rp.conn) |