diff --git a/src/borg/archive.py b/src/borg/archive.py index b72bbda44..fb680d9bc 100644 --- a/src/borg/archive.py +++ b/src/borg/archive.py @@ -1699,11 +1699,14 @@ def iter_chunks(self, archive, target, chunks): def save(self, archive, target, comment=None, replace_original=True): if self.dry_run: return - timestamp = archive.ts.replace(tzinfo=None) if comment is None: comment = archive.metadata.get('comment', '') - target.save(timestamp=timestamp, comment=comment, additional_metadata={ + target.save(comment=comment, additional_metadata={ + # keep some metadata as in original archive: + 'time': archive.metadata.time, + 'time_end': archive.metadata.time_end, 'cmdline': archive.metadata.cmdline, + # but also remember recreate metadata: 'recreate_cmdline': sys.argv, }) if replace_original: