Check return codes of Borg #52
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#52
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?
Currently it seems that borgmatic is not checking the return code of borg, e.g.
In create_archive subprocess.check_call() is used that should throw an exception if borg is not successful, but I see no handling of this exception.
This exception should actually be handled already! Here's the code that does it: https://projects.torsion.org/witten/borgmatic/src/branch/master/borgmatic/commands/borgmatic.py#L138
For instance, here's the output of a borgmatic run with a Borg error:
If you find that there is some exception or Borg error that is not handled like that, please let me know.