diff --git a/changelog/unreleased/issue-5109 b/changelog/unreleased/issue-5109 index 8995891a3..698a85244 100644 --- a/changelog/unreleased/issue-5109 +++ b/changelog/unreleased/issue-5109 @@ -1,8 +1,7 @@ Enhancement: Make small pack size configureable for `prune` The `prune` command now supports the `--repack-smaller-than` option that -allows repacking pack files smaller than the given size. It has to be used in -conjunction with option `--repack-small`. +allows repacking pack files smaller than the given size. https://github.com/restic/restic/issues/5109 https://github.com/restic/restic/pull/5183 diff --git a/cmd/restic/cmd_prune.go b/cmd/restic/cmd_prune.go index 10b465f39..65833c689 100644 --- a/cmd/restic/cmd_prune.go +++ b/cmd/restic/cmd_prune.go @@ -143,11 +143,6 @@ func verifyPruneOptions(opts *PruneOptions) error { } } - if !opts.RepackSmall && opts.SmallPackSize != "" { - return errors.Fatal("option --repack-small and --repack-smaller-than: must be specified together") - } - - opts.SmallPackBytes = uint64(0) if opts.SmallPackSize != "" { size, err := ui.ParseBytes(opts.SmallPackSize) if err != nil { diff --git a/doc/060_forget.rst b/doc/060_forget.rst index 484e0c6bd..6a985db73 100644 --- a/doc/060_forget.rst +++ b/doc/060_forget.rst @@ -466,10 +466,9 @@ The ``prune`` command accepts the following options: - ``--repack-small`` if set will repack pack files below 80% of target pack size. The default value is false. -- ``--repack-smaller-than`` in conjunction with ``--repack-small`` will repack all - packfiles below the size of ``--repack-smaller-than``. This will allow to repack - packfiles which initially came from a repository with a smaller ``--pack-size`` - to be compacted into larger packfiles. +- ``--repack-smaller-than`` will repack all packfiles below the size of + ``--repack-smaller-than``. This allows repacking packfiles that initially came from a + repository with a smaller ``--pack-size`` to be compacted into larger packfiles. - ``--dry-run`` only show what ``prune`` would do.