summaryrefslogtreecommitdiff
path: root/seivot
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2011-04-19 20:01:39 +0100
committerLars Wirzenius <liw@liw.fi>2011-04-19 20:01:39 +0100
commit77a9bbb2fcfe2e5a27f934699e56767cf5283b16 (patch)
treef0c4b0cd4d4c9c6bf1e767cb9847c7ffdafa86ef /seivot
parent15b1523142c031a0fe46ae0c06adc97ba8be2265 (diff)
downloadseivot-77a9bbb2fcfe2e5a27f934699e56767cf5283b16.tar.gz
Implement restore for obnam.
Diffstat (limited to 'seivot')
-rwxr-xr-xseivot4
1 files changed, 4 insertions, 0 deletions
diff --git a/seivot b/seivot
index bc75ba2..c58b6c9 100755
--- a/seivot
+++ b/seivot
@@ -106,6 +106,10 @@ class Obnam(BackupProgram):
devnull = os.open('/dev/null', os.O_WRONLY)
self._run(['ls', self._genid(gen)], stdout=devnull)
os.close(devnull)
+
+ def restore(self, gen, target_dir):
+ self._run(['restore', '--to', target_dir,
+ '--generation', self._genid(gen)])
class BackupProgramFactory(object):