summaryrefslogtreecommitdiff
path: root/obnam/oper_backup.py
diff options
context:
space:
mode:
Diffstat (limited to 'obnam/oper_backup.py')
-rw-r--r--obnam/oper_backup.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/obnam/oper_backup.py b/obnam/oper_backup.py
index a9a5240d..ec59a6b2 100644
--- a/obnam/oper_backup.py
+++ b/obnam/oper_backup.py
@@ -42,6 +42,12 @@ class Backup(obnam.Operation):
if old_gen_ids:
prev_gen = app.get_store().get_object(old_gen_ids[-1])
app.set_previous_generation(prev_gen)
+ filelist_id = prev_gen.get_filelistref()
+ if filelist_id:
+ filelist = obnam.filelist.Filelist()
+ o = app.get_store().get_object(filelist_id)
+ filelist.from_object(o)
+ app.set_prevgen_filelist(filelist)
gen = app.backup(roots)