Man page - borg2-match-archives(1)
Packages contains this manual
- borg2-diff(1)
- borg2-break-lock(1)
- borg2-umount(1)
- borg2-mount(1)
- borg2-export-tar(1)
- borg2-key(1)
- borg2-common(1)
- borg2-prune(1)
- borg2-match-archives(1)
- borg2-placeholders(1)
- borg2-check(1)
- borg2-compact(1)
- borg2-delete(1)
- borg2-extract(1)
- borg2-benchmark-crud(1)
- borg2-key-export(1)
- borg2-analyze(1)
- borg2(1)
- borg2-list(1)
- borg2-import-tar(1)
- borg2-repo-delete(1)
- borg2-undelete(1)
- borg2-create(1)
- borg2-patterns(1)
- borgfs2(1)
- borg2-compression(1)
- borgbackup2(1)
- borg2-key-change-passphrase(1)
- borg2-recreate(1)
- borg2-version(1)
- borg2-repo-list(1)
- borg2-tag(1)
- borg2-rename(1)
- borg2-repo-create(1)
- borg2-serve(1)
- borg2-transfer(1)
- borg2-benchmark-cpu(1)
- borg2-benchmark(1)
- borg2-info(1)
- borg2-key-change-location(1)
- borg2-repo-compress(1)
- borg2-with-lock(1)
- borg2-key-import(1)
- borg2-repo-info(1)
- borg2-repo-space(1)
apt-get install borgbackup2
Manual
BORG-MATCH-ARCHIVES
NAMEDESCRIPTION
AUTHOR
NAME
borg-match-archives - Details regarding match-archives
DESCRIPTION
The --match-archives option matches a given pattern against the list of all archives in the repository. It can be given multiple times.
The patterns can have a prefix of:
|
• |
name: pattern match on the archive name (default) |
|||
|
• |
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 |
In case of a
name pattern match, it uses pattern styles similar to the
ones described by
borg help patterns
:
Identical match pattern, selector id: (default)
Simple string match, must fully match exactly as given.
Shell-style patterns, selector sh:
Match like on the shell, wildcards like * and ? work.
Regular expressions <https://docs.python.org/3/library/re.html>
, selector re: Full regular expression support. This is very powerful, but can also get rather complicated.
Examples:
# name match,
id: style
borg delete --match-archives 'id:archive-with-crap'
borg delete -a 'id:archive-with-crap' # same, using short
option
borg delete -a 'archive-with-crap' # same, because 'id:' is
the default
# name match,
sh: style
borg delete -a 'sh:home-kenny-*'
# name match,
re: style
borg delete -a
're:pc[123]-home-(user1|user2)-2022-09-.*'
# archive id
prefix match:
borg delete -a 'aid:d34db33f'
# host or user
match
borg delete -a 'user:kenny'
borg delete -a 'host:kenny-pc'
# tags match
borg delete -a 'tags:TAG1' -a 'tags:TAG2'
AUTHOR
The Borg Collective