-
-
Notifications
You must be signed in to change notification settings - Fork 54
docs: clarify forget.keep- value 0 doesn't remove snapshots (#526) #559
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughUpdated help text in Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Areas to spot-check:
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Repository UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
✅ Files skipped from review due to trivial changes (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (7)
restic/commands.json (7)
822-822: Prefer clearer phrasing: “0 disables this policy; it does not remove snapshots.”The current sentence could be misread as an action (“removes no snapshots”). Suggest rewording for precision and consistency with restic’s behaviour.
- "Description": "keep the last n daily snapshots (use 'unlimited' to keep all daily snapshots). The default value of 0 removes no snapshots. See https://restic.readthedocs.io/en/latest/060_forget.html#removing-all-snapshots", + "Description": "keep the last n daily snapshots (use 'unlimited' to keep all daily snapshots). A value of 0 disables this policy and does not remove any snapshots. See https://restic.readthedocs.io/en/latest/060_forget.html#removing-all-snapshots",
831-831: Same clarity tweak for hourly retention.- "Description": "keep the last n hourly snapshots (use 'unlimited' to keep all hourly snapshots). The default value of 0 removes no snapshots. See https://restic.readthedocs.io/en/latest/060_forget.html#removing-all-snapshots", + "Description": "keep the last n hourly snapshots (use 'unlimited' to keep all hourly snapshots). A value of 0 disables this policy and does not remove any snapshots. See https://restic.readthedocs.io/en/latest/060_forget.html#removing-all-snapshots",
840-840: Same clarity tweak for “keep-last”.- "Description": "keep the last n snapshots (use 'unlimited' to keep all snapshots). The default value of 0 removes no snapshots. See https://restic.readthedocs.io/en/latest/060_forget.html#removing-all-snapshots", + "Description": "keep the last n snapshots (use 'unlimited' to keep all snapshots). A value of 0 disables this policy and does not remove any snapshots. See https://restic.readthedocs.io/en/latest/060_forget.html#removing-all-snapshots",
849-849: Same clarity tweak for monthly retention.- "Description": "keep the last n monthly snapshots (use 'unlimited' to keep all monthly snapshots). The default value of 0 removes no snapshots. See https://restic.readthedocs.io/en/latest/060_forget.html#removing-all-snapshots", + "Description": "keep the last n monthly snapshots (use 'unlimited' to keep all monthly snapshots). A value of 0 disables this policy and does not remove any snapshots. See https://restic.readthedocs.io/en/latest/060_forget.html#removing-all-snapshots",
867-867: Same clarity tweak for weekly retention.- "Description": "keep the last n weekly snapshots (use 'unlimited' to keep all weekly snapshots). The default value of 0 removes no snapshots. See https://restic.readthedocs.io/en/latest/060_forget.html#removing-all-snapshots", + "Description": "keep the last n weekly snapshots (use 'unlimited' to keep all weekly snapshots). A value of 0 disables this policy and does not remove any snapshots. See https://restic.readthedocs.io/en/latest/060_forget.html#removing-all-snapshots",
930-930: Same clarity tweak for yearly retention.- "Description": "keep the last n yearly snapshots (use 'unlimited' to keep all yearly snapshots). The default value of 0 removes no snapshots. See https://restic.readthedocs.io/en/latest/060_forget.html#removing-all-snapshots", + "Description": "keep the last n yearly snapshots (use 'unlimited' to keep all yearly snapshots). A value of 0 disables this policy and does not remove any snapshots. See https://restic.readthedocs.io/en/latest/060_forget.html#removing-all-snapshots",
822-822: Consider pinning to the “stable” docs rather than “latest”.Linking to “stable” avoids churn if “latest” changes semantics or anchors. Optional, as other entries already use various external links.
- See https://restic.readthedocs.io/en/latest/060_forget.html#removing-all-snapshots + See https://restic.readthedocs.io/en/stable/060_forget.html#removing-all-snapshotsAlso applies to: 831-831, 840-840, 849-849, 867-867, 930-930
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
restic/commands.json(6 hunks)
🔇 Additional comments (1)
restic/commands.json (1)
768-1025: LGTM — helpful clarification without behavioural change.The additions make the defaults explicit and reference the right section in the docs.
|
Hey! Thank you for the clarification. This file It's going to be a bit move involved to add this message: in the documentation parser, we need to add it to the existing description from the manual. |
7d72c12 to
2c47715
Compare
Addresses #526 . Clarifies meaning of 0.