Archive renaming and "--archive latest" broken with Borg 2 #1146
Labels
No labels
blocked
breaking
bug
data loss
design finalized
good first issue
new feature area
question / support
security
waiting for response
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
borgmatic-collective/borgmatic#1146
Loading…
Reference in a new issue
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
When running borgmatic with Borg 2, several features related to archive names are broken. This is likely due to the way that Borg 2 peforms archive naming very different than Borg 1, such that multiple archives can (and with borgmatic, do) share the same name.
Steps to reproduce
And separately:
Actual behavior
For the first command:
And for the second:
Actually, I lied. Before you can get to that error with
create, you get this error first:Expected behavior
I would expect these commands to complete successfully without erroring on matching an archive name.
Other notes / implementation ideas
Maybe this isn't an "always" bug, but rather it's happening due to the fact that there are two identically named
flux.checkpointarchives, possibly related to #1032 changes.borgmatic version
2.0.8.dev0/main
borgmatic installation method
uv
Borg version
2.0.0b19
Python version
3.13.7
Database version (if applicable)
No response
Operating system and version
Manjaro stable
Implemented in main and will be part of the next release. The fix was to use archive ID instead of archive name with Borg 2 for these cases.
Released in borgmatic 2.0.8!