Permissions error with pre-backup hook using Borgmatic #948
Loading…
x
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
I've set up my Synology NAS to upload nightly Borg backups to Borgmatic based on the official tutorial. Just recently, I started receiving "inactive repository" emails and I've been investigating with email support from Borgmatic.
I tried running the backups manually after SSH'ing into my NAS using the verbose commands below, and the error suggests it's a DB-related permissions issue that I'm struggling to troubleshoots. Borgmatic support thinks it's due to NAS systems being quite locked down out-of-the-box and that makes sense; they suggested I disable pre-backup hooks one at a time to see which one is causing the issue, but my YML has no DB-related commands to disable and I'm not sure where to turn.
I was directed to this page, which I find doesn't really have relevant info for troubleshooting permissions issues. I'm a bit stuck and could use some help, as I'm just trying to get my nightly backups working again.
Regards
Bogdan
Steps to reproduce
My borgmatic.yml file is:
Actual behavior
When I try to run my scheduled back up manually via the terminal, I get the following error:
Expected behavior
No response
Other notes / implementation ideas
No response
borgmatic version
1.9.0
borgmatic installation method
Synology package center
Borg version
1.4.0
Python version
Python 3.8.15
Database version (if applicable)
No response
Operating system and version
Synology DSM 7.2.2-72806 Update 2
Try upgrading borgmatic. The problem is that 1.9.0 introduced use of a new temporary directory, but that directory is not present on all systems—and I'm guessing that was the case on your NAS. 1.9.2 fixes this to support more systems via smarter temporary directory usage.
Thanks for the suggestion, that sounds like a likely root cause. It seems that Borgmatic comes with the Borg package on the SynoCommunity package repo, so I'll have to wait for an update to the package before I can update either one. I'll report back if it works or not!
Awesome, I'd appreciate that!
SynoCommunity takes a long time to upgrade their packages, but I can finally confirm that upgrading to Borgmatic 1.9.5 resolved the problem. I should probably containerize Borgmatic instead of using Synology's package.
Thanks witten for your help!
Awesome, glad to hear it!