* refactor: Change INSTALL_PREFIX placeholder notation to templating notation
The former shell notation `$INSTALL_PREFIX` could result confusing. As
this is a placeholder that's replaced in the `make`, we switch it to a
template notation `{{ INSTALL_PREFIX }}`.
* docs: Small fix on README/manual setup
* docs(email-notif): Document the `{{ INSTALL_PREFIX }}` placeholder
co-authored-by: giuaig <13609224+giuaig@users.noreply.github.com>
* Update README.md
Co-authored-by: Gerard Bosch <30733556+gerardbosch@users.noreply.github.com>
---------
Co-authored-by: giuaig <13609224+giuaig@users.noreply.github.com>
Co-authored-by: Erik Westrup <erik.westrup@icloud.com>
16 lines
733 B
Desktop File
16 lines
733 B
Desktop File
[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 {{ INSTALL_PREFIX }}/etc/restic/%I.env.sh && {{ INSTALL_PREFIX }}/bin/restic_check.sh 2>&1 | systemd-cat'
|