1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2024-12-22 15:57:07 +00:00

cmd_rewrite: add capability to add snapshot summary data to an existing snapshot

Add option --snapshot-summary to enable this feature
This commit is contained in:
Winfried Plappert 2024-12-18 16:58:20 +00:00
parent 444e881c8e
commit 1d4d9388f8

View file

@ -172,7 +172,7 @@ func rewriteSnapshot(ctx context.Context, repo *repository.Repository, sn *resti
} }
rewriteNode := func(node *restic.Node, path string) *restic.Node { rewriteNode := func(node *restic.Node, path string) *restic.Node {
return node // always include everything return node
} }
rewriter, querySize := walker.NewSnapshotSizeRewriter(rewriteNode) rewriter, querySize := walker.NewSnapshotSizeRewriter(rewriteNode)