1
0
Fork 0
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:
Jonas Borgström 2010-10-24 22:07:54 +02:00
parent a3d2d5c733
commit 6c672b1ee5

View file

@ -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,
}