Borg systemd service not working #7371
Replies: 3 comments 7 replies
-
Did you read the guide with systemd example from borg docs? https://borgbackup.readthedocs.io/en/stable/deployment/automated-local.html |
Beta Was this translation helpful? Give feedback.
-
Yeah I saw that but I don't really see why that works and mine doesn't. It's still oneshot service with an execstart that runs a bash script with borg create in it. Maybe I'm missing some salient difference, but it's not clear to me. |
Beta Was this translation helpful? Give feedback.
-
I see you are using some %-based variable. Maybe it's unrelaited but there are also small note
|
Beta Was this translation helpful? Give feedback.
-
I have a systemd service that's intended to backup a BTRFS snapshot of my home directory to remote storage (borgbase). The script works exactly as expected when run manually from a shell, but sleeps indefinitely when run as part of the systemd service. The service config is:
The backup script is
Using strace on the
borg create ...
process showed a bunch of lines likeThe file descriptors associated with the process are:
What am I doing wrong here?
Full disclosure, I've cross-posted this from here, but I think maybe this is a better location for it.
Beta Was this translation helpful? Give feedback.
All reactions