From 38be6c13f76e893cf47636257071b440dec0c5b2 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Sun, 7 Sep 2025 17:32:13 +0200 Subject: initial commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Robert Günzler --- bundles/restic-backup/files/resticw | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 bundles/restic-backup/files/resticw (limited to 'bundles/restic-backup/files/resticw') diff --git a/bundles/restic-backup/files/resticw b/bundles/restic-backup/files/resticw new file mode 100644 index 0000000..e3a3e87 --- /dev/null +++ b/bundles/restic-backup/files/resticw @@ -0,0 +1,21 @@ +#!/bin/sh +set -eu + +# import environment from config +# can overwrite above defaults +set -a +. /etc/restic/restic.conf +set +a + +test -n "${RESTIC_REPOSITORY+1}" +test -n "${RESTIC_PASSWORD+1}" + +case "${RESTIC_REPOSITORY}" in +b2*) + test -n "${B2_ACCOUNT_ID+1}" + test -n "${B2_ACCOUNT_KEY+1}" + ;; + +esac + +exec restic $@ -- cgit 1.4.1