diff --git a/src/borg/archive.py b/src/borg/archive.py index ff8f8729e..88167ab12 100644 --- a/src/borg/archive.py +++ b/src/borg/archive.py @@ -446,15 +446,13 @@ def save(self, name=None, comment=None, timestamp=None, additional_metadata=None self.items_buffer.flush(flush=True) duration = timedelta(seconds=time.monotonic() - self.start_monotonic) if timestamp is None: - self.end = datetime.utcnow() - self.start = self.end - duration - start = self.start - end = self.end + end = datetime.utcnow() + start = end - duration else: - self.end = timestamp - self.start = timestamp - duration - end = timestamp - start = self.start + end = timestamp + duration + start = timestamp + self.start = start + self.end = end metadata = { 'version': 1, 'name': name,