rcreate action broken with Borg 1.4 #820
Labels
No Label
blocked
bug
data loss
design finalized
good first issue
new feature area
question / support
security
waiting for response
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: borgmatic-collective/borgmatic#820
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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?
What I'm trying to do and why
#798 started calling Borg with the
BORG_EXIT_CODES
environment variable set tomodern
, which causes Borg 1.4 (only) to return different exit codes. It appears that the borgmaticrcreate
action, which callsborg info
to determine if the repository already exists, doesn't handle the new exit code (13) properly when the repository doesn't exit. The result is that theborg info
call causes borgmatic to error instead of continuing on to runborg rcreate
as expected.This issue does not occur with other versions of Borg besides 1.4.
Steps to reproduce
Using Borg 1.4.0b1, run:
Actual behavior
Expected behavior
The
Repository /root/tmp/1.2.borg does not exist.
message is expected, but then instead of an error, I'd expect borgmatic to continue on to runningborg rcreate
.Other notes / implementation ideas
No response
borgmatic version
1.8.7 or main
borgmatic installation method
pipx install --editable
Borg version
1.4.0b1
Python version
3.11.6
Database version (if applicable)
No response
Operating system and version
Manjaro stable
Fixed in main. Will be part of the next release.
Released in borgmatic 1.8.8!