Cannot use dotslash hack with ZFS hook #1151
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
borgmatic-collective/borgmatic#1151
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
I have a ZFS dataset. It is mounted at a specific absolute path.
I specify the absolute path as a
source_directoryand also enable built-in ZFS hook. I also want to use the dotslash hack to trim the absolute path off, but that's ineffective.Steps to reproduce
Minimum relevant config:
Actual behavior
Logs
Slightly reduced, mostly complete config
Expected behavior
Be able to use the dotslash hack myself without borgmatic adding its own and making it ineffective
Other notes / implementation ideas
I already use borgmatic with the LVM hook, but I don't think I am running into this problem while using it for
/which is mounted on/, which is probably why I wasn't bothered until now.borgmatic version
2.0.7
borgmatic installation method
Alpine Linux packages
Borg version
1.4.1
Python version
3.12.11
Database version (if applicable)
N/A
Operating system and version
Alpine Linux 3.22.1
Well that's certainly an edge case I didn't anticipate.. Thanks for filing it! I've just pushed a fix to main for ZFS, Btrfs, and LVM hooks, which will be part of the next release. (The fix is to omit inserting the slashdot hack into a snapshot path if there's already a
/./present in the source pattern.)Released in borgmatic 2.0.9!