1
0

restic_env.j2 448 B

1234567891011
  1. {% if restic_ssh_enabled %}
  2. export RESTIC_REPOSITORY=sftp:{{ restic_ssh_host }}:{{ restic_repository_name }}
  3. {% else %}
  4. export RESTIC_REPOSITORY="{{ restic_repository }}"
  5. {% endif -%}
  6. export RESTIC_PASSWORD={{ restic_password}}
  7. {% if restic_aws_access_key_id is defined and restic_aws_secret_access_key is defined %}
  8. export AWS_ACCESS_KEY_ID={{ restic_aws_access_key_id}}
  9. export AWS_SECRET_ACCESS_KEY={{ restic_aws_secret_access_key}}
  10. {% endif %}