1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-01-01 04:37:34 +00:00

recreate: don't crash on attic archives w/o time_end, fixes #3109

(cherry picked from commit 9d3daebd5f)
This commit is contained in:
Thomas Waldmann 2017-10-10 01:17:56 +02:00
parent f407de07a8
commit fd253a2813

View file

@ -1697,7 +1697,7 @@ def save(self, archive, target, comment=None, replace_original=True):
target.save(comment=comment, additional_metadata={
# keep some metadata as in original archive:
'time': archive.metadata.time,
'time_end': archive.metadata.time_end,
'time_end': archive.metadata.get('time_end') or archive.metadata.time,
'cmdline': archive.metadata.cmdline,
# but also remember recreate metadata:
'recreate_cmdline': sys.argv,