2025-01-19 12:43:10 -06:00
|
|
|
#! /bin/sh
|
2025-01-20 20:16:41 -06:00
|
|
|
export AWS_ACCESS_KEY_ID="{{ backup_s3_aws_access_key_id }}"
|
|
|
|
export AWS_SECRET_ACCESS_KEY="{{ backup_s3_aws_secret_access_key }}"
|
2025-01-25 01:36:13 -06:00
|
|
|
export RESTIC_CACHE_DIR="/var/cache/restic"
|
|
|
|
mkdir -p "$RESTIC_CACHE_DIR"
|
|
|
|
chown root: "$RESTIC_CACHE_DIR"
|
|
|
|
chmod 0700 "$RESTIC_CACHE_DIR"
|
2025-01-19 12:43:10 -06:00
|
|
|
exec nice -n 10 restic \
|
|
|
|
-r "s3:{{ backup_s3_aws_endpoint_url }}/{{ backup_s3_bucket }}/restic" \
|
|
|
|
-p /opt/restic-password \
|
|
|
|
"$@"
|