diff options
| author | Robert Günzler <r@gnzler.io> | 2025-09-07 17:32:13 +0200 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2025-09-07 17:42:42 +0200 |
| commit | 38be6c13f76e893cf47636257071b440dec0c5b2 (patch) | |
| tree | f7ded3235a7e3362cbd1ed3d91523968fe0faf90 /bundles/restic-backup/files/resticw | |
initial commit
Signed-off-by: Robert Günzler <r@gnzler.io>
Diffstat (limited to 'bundles/restic-backup/files/resticw')
| -rw-r--r-- | bundles/restic-backup/files/resticw | 21 |
1 files changed, 21 insertions, 0 deletions
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 $@ |