When running multiple configs, do not fail at first error #116
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#116
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?
I put multiple configs in
/etc/borgmatic.d
, and my systemd service runs them all at once (by just calling borgmatic).The issue is, if one failure occurs borgmatic just stops here. I would expect borgmatic to try them all.
Ideally it could also display a summary of which failed and which succeeded at the end.
When running multiple configs, do not fail at firstto When running multiple configs, do not fail at first errorThanks for reporting. Right now, any exception due to calling Borg gets immediately bubbled up to
main()
and printed to the console. So one way I could see to implement your request would be: Catch any exception that occurs when calling Borg on a given configuration file, add the exception to a list, and then proceed to the next configuration file. Finally, upon exit, print out any accumulated exceptions from that list to the console.Anyway, could you say a little more about your use case? For instance, what are your different borgmatic config files used for? Why does one of them sometimes fail? And why do you want the other configurations to continue running even if the one fails? Thanks.
It's just for separating different data volumes (eg: work documents, personal documents, system config). I want to keep them isolate for several reasons:
In this case it was just bad configuration, but I upload the borg repo to backblaze B2 as a post step, so you could imagine it can fail for various reasons (connectivity issues, storage quota reached...)
Anyway, maybe I am doing it wrong, I could have 1 systemd timer+service per repo, but I want them to run sequentially, so it's a little more annoying to manage dans just being able to drop configs in
/etc/borgmatic.d
and have it run automatically.Unrelated: I think you have a config issue with your gitea, tried to edit my previous comment and cannot save it, the Firefox Javascript console shows:
Nope, your use case makes sense.. I just wanted to make sure I understood it before trying to implement anything.
As for the Gitea error, it sounds like you're hitting this: https://github.com/go-gitea/gitea/issues/4755 :(
Implemented in master. This enhancement will go out as part of the next release.
Just released in borgmatic 1.2.14.