1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-24 16:55:36 +00:00

archive metadata: store backup START time into 'time'

except if a timestamp is given via cli, then store that time into 'time'
This commit is contained in:
Thomas Waldmann 2016-02-05 00:23:54 +01:00
parent a078d730e1
commit 38d2237dad

View file

@ -226,7 +226,7 @@ def save(self, name=None, timestamp=None):
raise self.AlreadyExists(name)
self.items_buffer.flush(flush=True)
if timestamp is None:
timestamp = datetime.utcnow()
timestamp = self.start
metadata = StableDict({
'version': 1,
'name': name,