Scroll to navigation

BORG-MATCH-ARCHIVES(1) borg backup tool BORG-MATCH-ARCHIVES(1)

NAME

borg-match-archives - Details regarding match-archives

DESCRIPTION

The --match-archives option matches a given pattern against the list of all archive names in the repository.

It uses pattern styles similar to the ones described by borg help patterns:

Simple string match, must fully match exactly as given.
Match like on the shell, wildcards like * and ? work.
Full regular expression support. This is very powerful, but can also get rather complicated.

Examples:

# 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
# sh: style
borg delete -a 'sh:home-kenny-*'
# re: style
borg delete -a 're:pc[123]-home-(user1|user2)-2022-09-.*'


AUTHOR

The Borg Collective

2023-03-01