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:
parent
f407de07a8
commit
fd253a2813
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue