2021-05-08 14:23:21 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2024-12-02 22:28:57 +00:00
|
|
|
export AWS_ACCESS_KEY_ID="{{ vault_restic_b2_application_key_id }}"
|
|
|
|
export AWS_SECRET_ACCESS_KEY="{{ vault_restic_b2_application_key }}"
|
|
|
|
export RESTIC_PASSWORD="{{ vault_restic_key }}"
|
2024-12-01 20:58:34 +00:00
|
|
|
export RESTIC_REPOSITORY="s3:{{ restic_b2_endpoint }}/{{ restic_b2_bucket }}/{{ restic_dir }}"
|
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 $@
|