feat: add restic role and pb

This commit is contained in:
VC
2024-07-05 11:53:32 +02:00
parent 3d853e2d33
commit 02ee407244
7 changed files with 117 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
#!/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 }}"
## 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 %}
## récupération de l'espace
{{ restic_path }} forget --prune -d 7 -w 4 -m 3