diff options
author | owsla <owsla@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2009-01-31 18:11:18 +0000 |
---|---|---|
committer | owsla <owsla@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2009-01-31 18:11:18 +0000 |
commit | ac1c7dc4c578fcd583d2ca1d6feb6caef184c30b (patch) | |
tree | c232311ea2bd0423ab433c9b08489447727d3ef4 /rdiff-backup/rdiff_backup/Main.py | |
parent | 672bff22acc54cc3a89591487d90aa5e8a0f20d9 (diff) | |
download | rdiff-backup-ac1c7dc4c578fcd583d2ca1d6feb6caef184c30b.tar.gz |
Improve error message if regress operation fails due to Security Violation.
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@1018 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/rdiff_backup/Main.py')
-rw-r--r-- | rdiff-backup/rdiff_backup/Main.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/rdiff-backup/rdiff_backup/Main.py b/rdiff-backup/rdiff_backup/Main.py index c697542..62aae83 100644 --- a/rdiff-backup/rdiff_backup/Main.py +++ b/rdiff-backup/rdiff_backup/Main.py @@ -919,4 +919,9 @@ def checkdest_if_necessary(dest_rp): if need_check == 1: Log("Previous backup seems to have failed, regressing " "destination now.", 2) - dest_rp.conn.regress.Regress(dest_rp) + try: + dest_rp.conn.regress.Regress(dest_rp) + except Security.Violation: + Log.FatalError("Security violation while attempting to regress " + "destination, perhaps due to --restrict-read-only " + "or --restrict-update-only.") |