From 9052c1cc543ff77626f01f9200119eb6eef4e5a2 Mon Sep 17 00:00:00 2001 From: Guinness Date: Wed, 16 Dec 2020 13:46:29 +0100 Subject: [PATCH] Add repo location to the stats in borg create --- src/borg/archive.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/borg/archive.py b/src/borg/archive.py index fa0c7d7e6..7c0369d6e 100644 --- a/src/borg/archive.py +++ b/src/borg/archive.py @@ -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