mirror of
https://github.com/restic/restic.git
synced 2026-11-09 00:48:08 +00:00
Add exclude filter to archiver and 'backup' command
This commit is contained in:
1 parent
0d8bad273d
commit
7fd52f9f57
9 files changed
+179
-36
No files matched your search
+2
-2
@@ -91,8 +91,8 @@ func match(patterns, strs []string) (matched bool, err error) {
|
||||
return false, nil
|
||||
}
|
||||
|
||||
// MatchList returns true if str matches one of the patterns.
|
||||
func MatchList(patterns []string, str string) (matched bool, err error) {
|
||||
// List returns true if str matches one of the patterns.
|
||||
func List(patterns []string, str string) (matched bool, err error) {
|
||||
for _, pat := range patterns {
|
||||
matched, err = Match(pat, str)
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user