-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
Support restic check #75
Comments
+1 from me. Personally, I would like a Check now button, next to the Backup now one. Also some repo configuration that would make sense:
Thinking about it, maybe it would make sense to have a dropdown button next to Backup now with "More actions". Maybe it would also make sense to move Unlock repo and Prune now there. Note: as a new restic user, who used backrest to back up multiple hosts with multiple TB of data, I would be very interested in seeing that a backup is restorable. Having an indicator in the UI that shows something like "Check: OK {timestamp}" would make it easy to spot corrupted backups. Also, this could be combined with notifications, when a corrupted backup is detected. Or if backrest wants to go so far, maybe even automatic fixing of corrupted backups (as I am new to restic, I am not sure if it provides functionality for repairing corrupted chunks after a failed check, I'll leave that to the pros) |
Hey, thanks all for the interest. Just updating here to say that this is high on the todo list. I like the idea of a "check now" button at the very least and will aim to make automatic checks configurable. I think the right time to run them is probably right after a prune operation. |
Coincidentally, I just had issues with one my repositories.
Just looking at this case, these enhancements could be very useful
|
Initial implementation in PR #303 , a preview release with check support can be downloaded from https://github.com/garethgeorge/backrest/actions/runs/9260231928 . Check is introduced as a new type of scheduled task (similar to prune) with new hooks introduced to make it's output actionable:
Similar hooks were also added for prune for consistency. |
Available in version 1.1.0 |
Add support to check the repo.
The following checks are available :
--read-data
--read-data-subset=n/t
--read-data-subset=x%
--read-data-subset=nS
The existing plans can be classified into backup plan and check plan. Check plan can be scheduled similar to backup plans.
This could be considered a high priority issue since repo can be corrupted due to updates or existing undiscovered bugs (eg : recent compression bug). If repo corruption is known soon, it can rectified.
The text was updated successfully, but these errors were encountered: