Modified: usr/local/sbin/restic_backup.sh

This commit is contained in:
Erik Westrup
2022-02-01 17:20:30 +01:00
parent f1304f7db9
commit 33a16ddb75

View File

@@ -11,7 +11,6 @@
# Exit on error, unset var, pipe failure
set -euo pipefail
# Assert that all needed environment variables are set.
# TODO in future if this grows, move this to a restic_lib.sh
assert_envvars() {
@@ -31,7 +30,6 @@ assert_envvars \
RESTIC_RETENTION_DAYS RESTIC_RETENTION_MONTHS RESTIC_RETENTION_WEEKS RESTIC_RETENTION_YEARS
# Clean up lock if we are killed.
# If killed by systemd, like $(systemctl stop restic), then it kills the whole cgroup and all it's subprocesses.
# However if we kill this script ourselves, we need this trap that kills all subprocesses manually.