Update restic wrapper to have keys

This commit is contained in:
Salt 2025-01-20 20:16:41 -06:00
parent ddac9fe542
commit 8e6cbb69ff

View File

@ -1,4 +1,6 @@
#! /bin/sh #! /bin/sh
export AWS_ACCESS_KEY_ID="{{ backup_s3_aws_access_key_id }}"
export AWS_SECRET_ACCESS_KEY="{{ backup_s3_aws_secret_access_key }}"
exec nice -n 10 restic \ exec nice -n 10 restic \
-r "s3:{{ backup_s3_aws_endpoint_url }}/{{ backup_s3_bucket }}/restic" \ -r "s3:{{ backup_s3_aws_endpoint_url }}/{{ backup_s3_bucket }}/restic" \
-p /opt/restic-password \ -p /opt/restic-password \