mirror of
https://github.com/borgbackup/borg.git
synced 2026-02-19 02:29:19 -05:00
Add repo location to the stats in borg create
This commit is contained in:
parent
5017bc4d04
commit
9052c1cc54
1 changed files with 4 additions and 1 deletions
|
|
@ -497,6 +497,7 @@ class Archive:
|
|||
|
||||
def __str__(self):
|
||||
return '''\
|
||||
Repository: {location}
|
||||
Archive name: {0.name}
|
||||
Archive fingerprint: {0.fpr}
|
||||
Time (start): {start}
|
||||
|
|
@ -508,7 +509,9 @@ Utilization of max. archive size: {csize_max:.0%}
|
|||
self,
|
||||
start=OutputTimestamp(self.start.replace(tzinfo=timezone.utc)),
|
||||
end=OutputTimestamp(self.end.replace(tzinfo=timezone.utc)),
|
||||
csize_max=self.cache.chunks[self.id].csize / MAX_DATA_SIZE)
|
||||
csize_max=self.cache.chunks[self.id].csize / MAX_DATA_SIZE,
|
||||
location=self.repository._location.canonical_path()
|
||||
)
|
||||
|
||||
def __repr__(self):
|
||||
return 'Archive(%r)' % self.name
|
||||
|
|
|
|||
Loading…
Reference in a new issue