From 83d6f50cc4845a2f5154f9041a2d33cb2110f0ba Mon Sep 17 00:00:00 2001 From: Matthias Leutenegger Date: Mon, 1 Jun 2020 19:38:08 +0200 Subject: [PATCH] Update restic_access_Linux.j2 --- templates/restic_access_Linux.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/restic_access_Linux.j2 b/templates/restic_access_Linux.j2 index 8c52cdc..554073d 100644 --- a/templates/restic_access_Linux.j2 +++ b/templates/restic_access_Linux.j2 @@ -4,12 +4,12 @@ # Source this file to work with restic on this host export RESTIC_REPOSITORY={{ restic_repos[item.repo].location }} -export RESTIC_PASSWORD={{ restic_repos[item.repo].password }} +export RESTIC_PASSWORD="{{ restic_repos[item.repo].password | regex_escape() }}" {% if restic_repos[item.repo].aws_access_key is defined %} export AWS_ACCESS_KEY_ID={{ restic_repos[item.repo].aws_access_key }} {% endif %} {% if restic_repos[item.repo].aws_secret_access_key is defined %} -export AWS_SECRET_ACCESS_KEY={{ restic_repos[item.repo].aws_secret_access_key }} +export AWS_SECRET_ACCESS_KEY="{{ restic_repos[item.repo].aws_secret_access_key | regex_escape() }}" {% endif %} {% if restic_repos[item.repo].aws_default_region is defined %} export AWS_DEFAULT_REGION={{ restic_repos[item.repo].aws_default_region }}