mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-26 09:47:58 +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:
parent
a078d730e1
commit
38d2237dad
1 changed files with 1 additions and 1 deletions
|
@ -226,7 +226,7 @@ def save(self, name=None, timestamp=None):
|
||||||
raise self.AlreadyExists(name)
|
raise self.AlreadyExists(name)
|
||||||
self.items_buffer.flush(flush=True)
|
self.items_buffer.flush(flush=True)
|
||||||
if timestamp is None:
|
if timestamp is None:
|
||||||
timestamp = datetime.utcnow()
|
timestamp = self.start
|
||||||
metadata = StableDict({
|
metadata = StableDict({
|
||||||
'version': 1,
|
'version': 1,
|
||||||
'name': name,
|
'name': name,
|
||||||
|
|
Loading…
Reference in a new issue