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
rephrase some warnings, fixes #5164 #5241
rephrase some warnings, fixes #5164 #5241
Conversation
borg check --repair and borg recreate are now present in the code since rather long, so they are not experimental any more. but, both bear some risk of data loss: - there could be an undiscovered bug in the code - the user might use them wrong (e.g. accidentally excluding everything / not matching anything when recreating an archive) - there might be kinds of corruption borg check --repair can not fix and it might make things even worse while trying to fix. so, if your repo / archive(s) are important, be careful.
Codecov Report
@@ Coverage Diff @@
## master #5241 +/- ##
==========================================
- Coverage 83.97% 83.74% -0.24%
==========================================
Files 37 37
Lines 9873 9898 +25
Branches 1647 1650 +3
==========================================
- Hits 8291 8289 -2
- Misses 1103 1123 +20
- Partials 479 486 +7
Continue to review full report at Codecov.
|
Well, either the verdict is, that there is a higher likeliness of bugs in that particular code, which would be an argument to keep the experimental warning, or that there just like in every other place of the code could be hidden bugs (like e.g. the pre-1.1.11 index corruption), which is something that always applies to any sofware and does not need any waring, ie. no "or in case of bugs".
The user may also So I'd rather have recreate not warn, or only warn if used with |
FWIW, I agree with @elho: it's not (or it should not be) the job of
|
bugs can always happen, no need to point this out here.
OK, I removed the talk about bugs. I'ld like to keep the "dangerous" warning for About the "dangerous" warning for |
not experimental any more, user is responsible for avoiding bugs. the docs still point out that this might be dangerous when used wrongly, like it also does for prune.
squash / merge? |
borg check --repair and borg recreate are now present in the code
since rather long, so they are not experimental any more.
but, both bear some risk of data loss:
not matching anything when recreating an archive)
and it might make things even worse while trying to fix.
so, if your repo / archive(s) are important, be careful.