Skip to content

prune: Add option --keep-packs-from#3196

Closed
aawsome wants to merge 2 commits intorestic:masterfrom
aawsome:prune-keep-packs
Closed

prune: Add option --keep-packs-from#3196
aawsome wants to merge 2 commits intorestic:masterfrom
aawsome:prune-keep-packs

Conversation

@aawsome
Copy link
Copy Markdown
Contributor

@aawsome aawsome commented Dec 28, 2020

What does this PR change? What problem does it solve?

Adds a new option --keep-packs-from to prune.
If given, prune reads the ids (= filenames) of pack files which will be always kept.

This is handy if you do not want to delete or repack some pack files for various reasons, like cold storages with early deletion fees or locked files, see #3195 (where I got the idea from).

Was the change discussed in an issue or in the forum before?

The early deletion fees were already mentioned in some cold storage discussions.
See also #3195

Checklist

  • I have read the Contribution Guidelines
  • I have enabled maintainer edits for this PR
  • I have not added tests for all changes in this PR
  • I have added documentation for the changes (in the manual)
  • There's a new file in changelog/unreleased/ that describes the changes for our users (template here)
  • I have run gofmt on the code in all commits
  • All commit messages are formatted in the same style as the other commits in the repo
  • I'm done, this Pull Request is ready for review

@aawsome
Copy link
Copy Markdown
Contributor Author

aawsome commented Jan 3, 2021

Added a check that the password and --keep-packs-from not try both to read from stdin.

@aawsome aawsome closed this Feb 24, 2024
@aawsome aawsome deleted the prune-keep-packs branch February 24, 2024 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant