|
@@ -771,6 +771,7 @@ class ArchiveFormatter(BaseFormatter):
|
|
|
"archive": "archive name",
|
|
|
"name": 'alias of "archive"',
|
|
|
"comment": "archive comment",
|
|
|
+ "tags": "archive tags",
|
|
|
# *start* is the key used by borg-info for this timestamp, this makes the formats more compatible
|
|
|
"start": "time (start) of creation of the archive",
|
|
|
"time": 'alias of "start"',
|
|
@@ -783,7 +784,7 @@ class ArchiveFormatter(BaseFormatter):
|
|
|
"nfiles": "count of files in this archive",
|
|
|
}
|
|
|
KEY_GROUPS = (
|
|
|
- ("archive", "name", "comment", "id"),
|
|
|
+ ("archive", "name", "comment", "id", "tags"),
|
|
|
("start", "time", "end", "command_line"),
|
|
|
("hostname", "username"),
|
|
|
("size", "nfiles"),
|
|
@@ -809,6 +810,7 @@ class ArchiveFormatter(BaseFormatter):
|
|
|
"size": partial(self.get_meta, "size", 0),
|
|
|
"nfiles": partial(self.get_meta, "nfiles", 0),
|
|
|
"end": self.get_ts_end,
|
|
|
+ "tags": self.get_tags,
|
|
|
}
|
|
|
self.used_call_keys = set(self.call_keys) & self.format_keys
|
|
|
|
|
@@ -854,6 +856,9 @@ class ArchiveFormatter(BaseFormatter):
|
|
|
def format_time(self, ts):
|
|
|
return OutputTimestamp(ts)
|
|
|
|
|
|
+ def get_tags(self):
|
|
|
+ return ",".join(sorted(self.archive.tags))
|
|
|
+
|
|
|
|
|
|
class ItemFormatter(BaseFormatter):
|
|
|
# we provide the hash algos from python stdlib (except shake_*) and additionally xxh64.
|