diff options
author | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2003-06-30 21:24:14 +0000 |
---|---|---|
committer | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2003-06-30 21:24:14 +0000 |
commit | a6220370a12ca72b6ddad9627fa77e19d16a7b1a (patch) | |
tree | 8241c228f9c8637ee959675c7007e6bc500842e3 /rdiff-backup/rdiff_backup/Security.py | |
parent | 4488947f39adcd35cf2b4bb167c87aad0d8a92b6 (diff) | |
download | rdiff-backup-a6220370a12ca72b6ddad9627fa77e19d16a7b1a.tar.gz |
Added --list-increment-sizes option
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@336 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/rdiff_backup/Security.py')
-rw-r--r-- | rdiff-backup/rdiff_backup/Security.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/rdiff-backup/rdiff_backup/Security.py b/rdiff-backup/rdiff_backup/Security.py index 427f826..919261a 100644 --- a/rdiff-backup/rdiff_backup/Security.py +++ b/rdiff-backup/rdiff_backup/Security.py @@ -76,7 +76,7 @@ def set_security_level(action, cmdpairs): rdir = tempfile.gettempdir() elif islocal(cp1): sec_level = "read-only" - Main.restore_get_root(rpath.RPath(Globals.local_connection, + Main.restore_set_root(rpath.RPath(Globals.local_connection, getpath(cp1))) rdir = Main.restore_root.path else: @@ -94,9 +94,9 @@ def set_security_level(action, cmdpairs): assert islocal(cp2) sec_level = "all" rdir = getpath(cp2) - elif (action == "test-server" or action == "list-increments" or - action == "list-at-time" or action == "list-changed-since" - or action == "calculate-average" or action == "remove-older-than"): + elif action in ["test-server", "list-increments", 'list-increment-sizes', + "list-at-time", "list-changed-since", + "calculate-average", "remove-older-than"]: sec_level = "minimal" rdir = tempfile.gettempdir() else: assert 0, "Unknown action %s" % action |