mirror of
https://github.com/restic/restic.git
synced 2026-10-13 05:27:13 +00:00
backup - show excluded files and directories in verbose mode - text/JSON (#21887)
This commit is contained in:
1 parent
8d7679c831
commit
d30d6b6281
9 files changed
+97
-1
No files matched your search
@@ -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,
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user