backup - show excluded files and directories in verbose mode - text/JSON (#21887)

This commit is contained in:
Winfried Plappert authored and GitHub committed 2026-06-21 16:11:42 +00:00
1 parent 8d7679c831
commit d30d6b6281
9 files changed
+97 -1

No files matched your search

+15
View File
@@ -251,3 +251,18 @@ type summaryOutput struct {
SnapshotID string `json:"snapshot_id,omitempty"`
DryRun bool `json:"dry_run,omitempty"`
}
type VerboseExclude struct {
MessageType string `json:"message_type"` // "excluded_item"
Item string `json:"item"` // file or directory name
}
func (b *jsonProgress) ExcludedItem(path string) {
if b.v < 2 {
return
}
b.print(VerboseExclude{
MessageType: "excluded_item",
Item: path,
})
}