From 893530fdac5a7a1f43c199d201f3706c28b7a87b Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Tue, 27 Jun 2023 21:00:05 +0200 Subject: [PATCH] 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. --- docs/usage/list.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/usage/list.rst b/docs/usage/list.rst index 71dfe8eca..52721899c 100644 --- a/docs/usage/list.rst +++ b/docs/usage/list.rst @@ -34,11 +34,11 @@ Examples -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 ... - $ 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.text ...