mirror of
https://github.com/borgbackup/borg.git
synced 2025-03-04 02:28:34 +00:00
Store username in archive
This commit is contained in:
parent
a3d2d5c733
commit
6c672b1ee5
1 changed files with 2 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
|||
from datetime import datetime
|
||||
from getpass import getuser
|
||||
import logging
|
||||
import msgpack
|
||||
import os
|
||||
|
@ -56,6 +57,7 @@ class Archive(object):
|
|||
'cindex': cindex_hash,
|
||||
'cmdline': sys.argv,
|
||||
'hostname': socket.gethostname(),
|
||||
'username': getuser(),
|
||||
'ts': datetime.utcnow().isoformat(),
|
||||
'items': self.items,
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue