1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
Description: Adapt vendor systemd service and timer for Debian
Last-Update: 2024-11-20
Forwarded: not-needed
Origin: vendor, https://salsa.debian.org/debian/borgmatic/-/merge_requests/3.patch
Bug-Debian: http://bugs.debian.org/989322
Author: Sebastien Badia <sbadia@debian.org>
Bug-Debian: http://bugs.debian.org/1054605
Author: Geoffroy Youri Berret <kaliko@debian.org>
---
sample/systemd/borgmatic.service | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/sample/systemd/borgmatic.service b/sample/systemd/borgmatic.service
index 8e22785..812c632 100644
--- a/sample/systemd/borgmatic.service
+++ b/sample/systemd/borgmatic.service
@@ -6,6 +6,8 @@ After=network-online.target
# want to allow borgmatic to run anytime.
ConditionACPower=true
Documentation=https://torsion.org/borgmatic/
+ConditionFileNotEmpty=|/etc/borgmatic/config.yaml
+ConditionPathExistsGlob=|/etc/borgmatic.d/*.yaml
[Service]
Type=oneshot
@@ -72,4 +74,4 @@ LogRateLimitIntervalSec=0
# Delay start to prevent backups running during boot. Note that systemd-inhibit requires dbus and
# dbus-user-session to be installed.
ExecStartPre=sleep 1m
-ExecStart=systemd-inhibit --who="borgmatic" --what="sleep:shutdown" --why="Prevent interrupting scheduled backup" /root/.local/bin/borgmatic --verbosity -2 --syslog-verbosity 1
+ExecStart=systemd-inhibit --who="borgmatic" --what="sleep:shutdown" --why="Prevent interrupting scheduled backup" /usr/bin/borgmatic --verbosity -2 --syslog-verbosity 1
|