summaryrefslogtreecommitdiff
path: root/rdiff-backup/rdiff_backup/Main.py
diff options
context:
space:
mode:
authorbescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2003-07-16 19:28:33 +0000
committerbescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2003-07-16 19:28:33 +0000
commit58c38700ed37a7e69bd2cfcc1b5508f843b86cf1 (patch)
treec65d253d98400a7156fd9c1bc97bdfa7e101639c /rdiff-backup/rdiff_backup/Main.py
parenta6220370a12ca72b6ddad9627fa77e19d16a7b1a (diff)
downloadrdiff-backup-58c38700ed37a7e69bd2cfcc1b5508f843b86cf1.tar.gz
Mostly tweaks to get the test cases to work
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@337 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/rdiff_backup/Main.py')
-rw-r--r--rdiff-backup/rdiff_backup/Main.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/rdiff-backup/rdiff_backup/Main.py b/rdiff-backup/rdiff_backup/Main.py
index f135219..eaa1559 100644
--- a/rdiff-backup/rdiff_backup/Main.py
+++ b/rdiff-backup/rdiff_backup/Main.py
@@ -377,7 +377,7 @@ def Restore(src_rp, dest_rp, restore_as_of = None):
"""
if not restore_root_set: assert restore_set_root(src_rp)
restore_check_paths(src_rp, dest_rp, restore_as_of)
- restore_set_fs_globals(Globals.rbdir)
+ restore_set_fs_globals(dest_rp)
src_rp = restore_init_quoting(src_rp)
restore_check_backup_dir(restore_root, src_rp, restore_as_of)
if restore_as_of:
@@ -412,7 +412,7 @@ def restore_set_fs_globals(target):
SetConnections.UpdateGlobal('preserve_hardlinks', target_fsa.hardlinks)
SetConnections.UpdateGlobal('change_ownership', target_fsa.ownership)
- mirror_fsa = fs_abilities.FSAbilities().init_readwrite(Globals.rbdir)
+ mirror_fsa = fs_abilities.FSAbilities().init_readonly(Globals.rbdir)
if Globals.chars_to_quote is None: # otherwise already overridden
if mirror_fsa.chars_to_quote:
SetConnections.UpdateGlobal('chars_to_quote',