infrastructure/ansible/roles/restic/files/backrest.sh
Jake Howard c66e9f368f
Some checks failed
/ terraform (push) Failing after 59s
/ ansible (push) Successful in 1m32s
Use separate access keys per restic repository
PVE TBC
2024-12-02 22:28:57 +00:00

13 lines
445 B
Bash

#!/usr/bin/env bash
set -e
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 }}"
export RESTIC_REPOSITORY="s3:{{ restic_b2_endpoint }}/{{ restic_b2_bucket }}/{{ restic_dir }}"
export GOGC=20 # HACK: Work around for restic's high memory usage https://github.com/restic/restic/issues/1988
set -x
exec restic $@