mirror of
https://github.com/borgbackup/borg.git
synced 2025-01-31 19:52:22 +00:00
list: fix --pattern examples, fixes #7611
- pattern needs to start with + - ! - first match wins - the default is to list everything, thus a 2nd pattern is needed to exclude everything not matched by 1st pattern.
This commit is contained in:
parent
f73eb5c6c2
commit
893530fdac
1 changed files with 2 additions and 2 deletions
|
@ -34,11 +34,11 @@ Examples
|
||||||
-rw-rw-r-- user user 1416192 Sun, 2015-02-01 11:00:00 code/myproject/file.text
|
-rw-rw-r-- user user 1416192 Sun, 2015-02-01 11:00:00 code/myproject/file.text
|
||||||
...
|
...
|
||||||
|
|
||||||
$ borg list /path/to/repo/::archiveA --pattern 're:\.ext$'
|
$ borg list /path/to/repo/::archiveA --pattern '+ re:\.ext$' --pattern '- re:^.*$'
|
||||||
-rw-rw-r-- user user 1416192 Sun, 2015-02-01 11:00:00 code/myproject/file.ext
|
-rw-rw-r-- user user 1416192 Sun, 2015-02-01 11:00:00 code/myproject/file.ext
|
||||||
...
|
...
|
||||||
|
|
||||||
$ borg list /path/to/repo/::archiveA --pattern 're:.ext$'
|
$ borg list /path/to/repo/::archiveA --pattern '+ re:.ext$' --pattern '- re:^.*$'
|
||||||
-rw-rw-r-- user user 1416192 Sun, 2015-02-01 11:00:00 code/myproject/file.ext
|
-rw-rw-r-- user user 1416192 Sun, 2015-02-01 11:00:00 code/myproject/file.ext
|
||||||
-rw-rw-r-- user user 1416192 Sun, 2015-02-01 11:00:00 code/myproject/file.text
|
-rw-rw-r-- user user 1416192 Sun, 2015-02-01 11:00:00 code/myproject/file.text
|
||||||
...
|
...
|
||||||
|
|
Loading…
Reference in a new issue