2021-05-08 14:23:21 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
export B2_ACCOUNT_ID="{{ restic_b2_account_id }}"
|
|
|
|
export B2_ACCOUNT_KEY="{{ restic_b2_account_key }}"
|
|
|
|
export RESTIC_PASSWORD="{{ restic_key }}"
|
|
|
|
export RESTIC_REPOSITORY="b2:{{ restic_b2_bucket }}"
|
2021-10-15 12:39:16 +01:00
|
|
|
export GOGC=20 # HACK: Work around for restic's high memory usage https://github.com/restic/restic/issues/1988
|
2021-05-08 14:23:21 +01:00
|
|
|
|
2024-01-03 21:09:07 +00:00
|
|
|
set -x
|
2021-05-16 15:34:37 +01:00
|
|
|
|
2024-01-03 21:09:07 +00:00
|
|
|
exec restic $@
|