2021-02-13 23:57:54 +00:00
|
|
|
Enhancement: Improve `prune` performance and make it more customizable
|
2020-07-19 05:55:14 +00:00
|
|
|
|
2020-11-03 09:40:34 +00:00
|
|
|
The `prune` command is now much faster. This is especially the case for remote
|
2021-02-13 23:57:54 +00:00
|
|
|
repositories or repositories with not much data to remove. Also the memory
|
|
|
|
usage of the `prune` command is now reduced.
|
|
|
|
|
2020-10-17 19:55:46 +00:00
|
|
|
Restic used to rebuild the index from scratch after pruning. This could lead
|
2021-02-13 23:57:54 +00:00
|
|
|
to missing packs in the index in some cases for eventually consistent backends
|
|
|
|
such as e.g. AWS S3. This behavior is now changed and the index rebuilding
|
|
|
|
uses the information already known by `prune`.
|
2020-07-19 05:55:14 +00:00
|
|
|
|
2020-11-03 09:40:34 +00:00
|
|
|
By default, the `prune` command no longer removes all unused data. This
|
2021-02-13 23:57:54 +00:00
|
|
|
behavior can be fine-tuned by new options, like the acceptable amount of
|
|
|
|
unused space or the maximum size of data to reorganize. For more details,
|
|
|
|
please see https://restic.readthedocs.io/en/stable/060_forget.html .
|
2020-07-19 05:55:14 +00:00
|
|
|
|
2021-02-13 23:57:54 +00:00
|
|
|
Moreover, `prune` now accepts the `--dry-run` option and also running
|
|
|
|
`forget --dry-run --prune` will show what `prune` would do.
|
2020-07-19 05:55:14 +00:00
|
|
|
|
2021-02-13 23:57:54 +00:00
|
|
|
This enhancement also fixes several open issues, e.g.:
|
|
|
|
- https://github.com/restic/restic/issues/1140
|
|
|
|
- https://github.com/restic/restic/issues/1599
|
|
|
|
- https://github.com/restic/restic/issues/1985
|
|
|
|
- https://github.com/restic/restic/issues/2112
|
|
|
|
- https://github.com/restic/restic/issues/2227
|
|
|
|
- https://github.com/restic/restic/issues/2305
|
2020-07-19 05:55:14 +00:00
|
|
|
|
|
|
|
https://github.com/restic/restic/pull/2718
|
2020-10-10 16:54:13 +00:00
|
|
|
https://github.com/restic/restic/pull/2842
|