prune: make small pack size configureable for prune all changes together

cmd_prune.go: added option `--repack-smaller-than`
prune.go: added field `SmallPackBytes` to `PruneOptions`, including checking and processing
prune_test.go: added test `TestPruneSmall`
doc/060_forget.rst: added description of enhancement
changelog/unreleased/issue-5109: description of enhancement
This commit is contained in:
Winfried Plappert
2025-02-18 16:54:44 +00:00
parent 5ddda7f5e9
commit a2a1309fd9
5 changed files with 134 additions and 9 deletions

View File

@@ -0,0 +1,8 @@
Enhancement: Make small pack size configureable for `prune`
The `prune` command now supports the `--small-pack-size` option that
allows repacking pack files smaller than the given size. It has to be used in
conjunction with option `--repack-small`.
https://github.com/restic/restic/issues/5109
https://github.com/restic/restic/pull/5183