fix: script rewrite & shell command

This commit is contained in:
VC
2024-07-05 11:53:33 +02:00
parent 2728bc28cd
commit be3b61e8e4
2 changed files with 5 additions and 5 deletions

View File

@@ -1,10 +1,10 @@
#!/bin/sh
## Variable
RESTIC_PASSWORD="{{ restic_pass }}"
RESTIC_REPOSITORY="{{ restic_repository }}"
AWS_ACCESS_KEY_ID="{{ restic_aws_access_key_id }}"
AWS_SECRET_ACCESS_KEY="{{ restic_aws_secret_access_key }}"
export RESTIC_PASSWORD="{{ restic_pass }}"
export RESTIC_REPOSITORY="{{ restic_repository }}"
export AWS_ACCESS_KEY_ID="{{ restic_aws_access_key_id }}"
export AWS_SECRET_ACCESS_KEY="{{ restic_aws_secret_access_key }}"
## lancement de la sauvegarde
{{ restic_path }} backup --exclude-caches {% for i in restic_backup_excluded_path %} -e {{ i }} {% endfor %} {% for i in restic_backup_path %}{{ i }} {% endfor %}