From 7ecf12df2ba7617b51ca862d2a6deab161c8de79 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Fri, 25 Sep 2026 22:05:03 +0200 Subject: [PATCH] docs: explain the tags: archive match pattern Document that tags: takes a comma-separated list of tags and matches archives having all of them. Co-Authored-By: Claude Opus 5.5 --- src/borg/archiver/help_cmd.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/borg/archiver/help_cmd.py b/src/borg/archiver/help_cmd.py index 645a45c77..74584b6f8 100644 --- a/src/borg/archiver/help_cmd.py +++ b/src/borg/archiver/help_cmd.py @@ -324,7 +324,7 @@ class HelpMixIn: - aid: prefix match on the archive id (only one result allowed) - user: exact match on the username who created the archive - host: exact match on the hostname where the archive was created - - tags: match on the archive tags + - tags: match archives having all the given tags (comma-separated, e.g. tags:TAG1,TAG2) - date: match on the archive creation timestamp In case of a name pattern match, @@ -399,8 +399,9 @@ class HelpMixIn: borg delete -a 'user:kenny' borg delete -a 'host:kenny-pc' - # tags match + # tags match (both lines match archives having TAG1 and TAG2) borg delete -a 'tags:TAG1' -a 'tags:TAG2' + borg delete -a 'tags:TAG1,TAG2' # archive creation date match borg delete -a 'date:2025-01'