about summary refs log tree commit diff
path: root/bundles/restic-backup/files/resticw
blob: e3a3e87cb10a841bfdb94d48c05bc7e29c52fa44 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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 $@