before_everything / after_everything hook does not apply for "borgmatic info/list" #487
Labels
No Label
bug
data loss
design finalized
good first issue
new feature area
question / support
security
waiting for response
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: borgmatic-collective/borgmatic#487
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?
What I'm trying to do and why
Running a before/after-everything hook with borgmatic info / list.
By default my filesystem for Backups is mounted read-only.
When creating a Backup with borg i remount it read-write to create the Backup and then remount it back to read-only.
Works fine for borgmatic create but does not work at all when running info or list.
Steps to reproduce (if a bug)
Actual behavior (if a bug)
Expected behavior (if a bug)
Borgmatic should run the before_everything and the after_everything for all commands including "info" and "list".
Environment
borgmatic version: 1.5.13.dev0
borgmatic installation method: Ubuntu Package
Borg version: borg 1.1.17
Python version: Python 3.9.7
operating system and version: Ubuntu 21.10 x86_64
See #427 regarding
--bypass-lock
as another (perhaps better) way to solve this issue. In short, for such read-only operations you don't even need a lock.Thanks for filing this, but it looks like it's a duplicate of #463. I'll close this in favor of that ticket, but please feel free to follow along there.