Skip to content

Commit 43e78ec

Browse files
authored
Update borgmatic-backup.service
1 parent c8f99ea commit 43e78ec

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

borgmatic/borgmatic-backup.service

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
[Unit]
22
Description=Daily Borgmatic backup for all sites
3-
After=network.target
3+
After=network.target docker.service
4+
Requires=docker.service
45

56
[Service]
67
Type=oneshot
78
ExecStart=/usr/bin/bash -c "HOSTNAME=$(hostname) /usr/bin/docker compose -f /opt/borgmatic/docker-compose.yml run --rm --entrypoint 'borgmatic --stats -v 0' borgmatic"
9+
StandardOutput=journal
10+
StandardError=journal

0 commit comments

Comments
 (0)