Allow checking the repository more rarely #150
Labels
No Label
bug
data loss
design finalized
good first issue
new feature area
question / support
security
waiting for response
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: borgmatic-collective/borgmatic#150
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Checking a repository takes much, much longer than the actual backup. Personally, I only need to check the repository about once a month, and not every time I create a backup.
Would it be possible to configure Borgmatic to run the check only once every X days or something like that? It could even be stateless, like "run every Monday"/"run every 3rd of the month", etc.
You can run checks completely independently from backups if you like! The idea is that you could put
borgmatic --create --prune
in a frequent cron job and then putborgmatic --check
in a less frequent job.Please have a look at these docs and let me know if any of the options there work for your use case:
https://torsion.org/borgmatic/docs/how-to/deal-with-very-large-backups/
If not, please let me know a few more details about what you'd like to see. Thanks.
Ah, yes, of course. I missed that page completely and didn't realize I could only run some of the steps.
I would slightly prefer it if Borgmatic did the right thing with one invocation, but that preference isn't worth the hassle of its implementation. I will split the steps like the page details, thank you!
The only issue I see is the following:
I have backups scheduled every day at 4 am and a check on the first of the month at 5 am. If the backups aren't complete by then, the check won't run until next month, so it might be many months if the situation is unlucky enough.
Borgmatic has the luxury of knowing when the backup is done, and could schedule the check more effectively. Other than that, both cases are of identical usefulness.
I'll see if I can schedule a task to run with check on the first of the month and one with prune/backup/check on every day EXCEPT the first.
This seems reasonable to me, how does it look to you?
Sorry, I apparently didn't see the ticket notification for this until now. Yes, that looks totally reasonable to me. Nice solution!