mirror of
https://github.com/borgbackup/borg.git
synced 2026-10-12 02:11:36 +00:00
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 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
d76a58b729
commit
7ecf12df2b
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user