mirror of
https://github.com/borgbackup/borg.git
synced 2025-01-01 04:37:34 +00:00
Merge pull request #3132 from ThomasWaldmann/no-time-end-1.1
recreate: don't crash on attic archives w/o time_end, fixes #3109
This commit is contained in:
commit
9e83632c06
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