mirror of
https://github.com/octoleo/restic.git
synced 2024-11-22 21:05:10 +00:00
backup: add debug output for excluded files/dirs
This commit is contained in:
parent
18478e2d3d
commit
b5976474dd
@ -10,6 +10,7 @@ import (
|
||||
|
||||
"github.com/restic/restic"
|
||||
"github.com/restic/restic/backend"
|
||||
"github.com/restic/restic/debug"
|
||||
"github.com/restic/restic/filter"
|
||||
"github.com/restic/restic/repository"
|
||||
"golang.org/x/crypto/ssh/terminal"
|
||||
@ -300,6 +301,10 @@ func (cmd CmdBackup) Execute(args []string) error {
|
||||
cmd.global.Warnf("error for exclude pattern: %v", err)
|
||||
}
|
||||
|
||||
if matched {
|
||||
debug.Log("backup.Execute", "path %q excluded by a filter", item)
|
||||
}
|
||||
|
||||
return !matched
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user