infrastructure/ansible/roles/restic/files/backrest.sh
Jake Howard 55df3e8fa3
All checks were successful
/ terraform (push) Successful in 35s
/ ansible (push) Successful in 1m31s
Separate restic repositories
Smaller VMs no longer need to load the full index
2024-12-01 21:34:44 +00:00

13 lines
415 B
Bash

#!/usr/bin/env bash
set -e
export AWS_ACCESS_KEY_ID="{{ restic_b2_account_id }}"
export AWS_SECRET_ACCESS_KEY="{{ restic_b2_account_key }}"
export RESTIC_PASSWORD="{{ 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 $@