Issue: 4942: cmd_rewrite: add snapshot summary data to an existing snapshot. (#5185)

Co-authored-by: Michael Eischer <michael.eischer@fau.de>
This commit is contained in:
Winfried Plappert
2025-02-05 19:40:20 +00:00
committed by GitHub
parent 060a44202f
commit 4104a8e6a5
5 changed files with 87 additions and 16 deletions

View File

@@ -0,0 +1,11 @@
Enhancement: support creating snapshot summary statistics for old snapshots
When `rewrite` is used with the `--snapshot-summary` option, a new snapshot is
created containing statistics summary data. Only two fields in the summary will
be non-zero: `TotalFilesProcessed` and `TotalBytesProcessed`.
When rewrite is called with one of the `--exclude` options, `TotalFilesProcessed`
and `TotalBytesProcessed` will be updated in the snapshot summary.
https://github.com/restic/restic/issues/4942
https://github.com/restic/restic/pull/5185