Specify restic repository with fully-qualified domain name. Add service and timer unit definitions for restic backup and restic check to repository.

This commit is contained in:
2026-10-17 22:03:02 -04:00
parent 39a87feaf2
commit a8e118d267
5 changed files with 51 additions and 1 deletions
@@ -0,0 +1,15 @@
[Unit]
Description=Check restic backup Backblaze B2 for errors
# Email on failure require special setup. See README.md
#OnFailure=status-email-user@%n.service
Conflicts=restic-backup.service
# Prevent backup on unmetered connection. Needs special setup. See README.md.
#Requires=nm-unmetered-connection.service
#After=nm-unmetered-connection.service
[Service]
Type=simple
Nice=10
# pipefail: so that redirecting stderr from the script to systemd-cat does not hide the failed command from OnFailure above.
# `systemd-cat`: allows showing the restic output to the systemd journal
ExecStart=/bin/bash -c 'set -o pipefail; source /etc/restic/%I.env.sh && /bin/restic_check.sh 2>&1 | systemd-cat'