diff --git a/templates/restic_access_Linux.j2 b/templates/restic_access_Linux.j2 index 724c7ca..9195dc7 100644 --- a/templates/restic_access_Linux.j2 +++ b/templates/restic_access_Linux.j2 @@ -11,6 +11,9 @@ AWS_ACCESS_KEY_ID={{ restic_repos[item.repo].aws_access_key }} {% if restic_repos[item.repo].aws_secret_access_key is defined %} AWS_SECRET_ACCESS_KEY={{ restic_repos[item.repo].aws_secret_access_key }} {% endif %} +{% if restic_repos[item.repo].aws_default_region is defined %} +AWS_DEFAULT_REGION={{ restic_repos[item.repo].aws_default_region }} +{% endif %} BACKUP_NAME={{ item.name }} {% if item.src is defined %} BACKUP_SOURCE={{ item.src }} diff --git a/templates/restic_script_Linux.j2 b/templates/restic_script_Linux.j2 index afae5cb..327f12c 100644 --- a/templates/restic_script_Linux.j2 +++ b/templates/restic_script_Linux.j2 @@ -12,6 +12,9 @@ AWS_ACCESS_KEY_ID={{ restic_repos[item.repo].aws_access_key }} {% if restic_repos[item.repo].aws_secret_access_key is defined %} AWS_SECRET_ACCESS_KEY={{ restic_repos[item.repo].aws_secret_access_key }} {% endif %} +{% if restic_repos[item.repo].aws_default_region is defined %} +AWS_DEFAULT_REGION={{ restic_repos[item.repo].aws_default_region }} +{% endif %} {% if item.src is defined %} BACKUP_SOURCE={{ item.src }} {% endif %}