summaryrefslogtreecommitdiff
path: root/obnamlib/plugins/restore_plugin.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2014-01-19 11:59:20 +0000
committerLars Wirzenius <liw@liw.fi>2014-01-19 11:59:20 +0000
commitc49b6d7236b77e5cb0556d4cd8d5869cea52acbe (patch)
tree35859a93da231d29c91351849d37d145b9a5288d /obnamlib/plugins/restore_plugin.py
parentb0ce4ca101c7c642bc19b10188aadd8d01bcf6cb (diff)
downloadobnam-c49b6d7236b77e5cb0556d4cd8d5869cea52acbe.tar.gz
Add --always-restore-setuid option
Diffstat (limited to 'obnamlib/plugins/restore_plugin.py')
-rw-r--r--obnamlib/plugins/restore_plugin.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/obnamlib/plugins/restore_plugin.py b/obnamlib/plugins/restore_plugin.py
index e6e3c3ac..795ab7d5 100644
--- a/obnamlib/plugins/restore_plugin.py
+++ b/obnamlib/plugins/restore_plugin.py
@@ -74,6 +74,12 @@ class RestorePlugin(obnamlib.ObnamPlugin):
['generation'],
'which generation to restore',
default=['latest'])
+ self.app.settings.boolean(
+ ['always-restore-setuid'],
+ 'restore setuid/setgid bits in restored files, '
+ 'even if not root or backed up file had different owner '
+ 'than user running restore',
+ default=False)
@property
def write_ok(self):