: restic munin plugins

This commit is contained in:
VC
2025-02-25 07:56:29 +01:00
parent e7a070d099
commit aa4ff098fc
6 changed files with 91 additions and 2 deletions

View File

@@ -6,8 +6,11 @@ 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 }}"
## Prépare le répertoire de log
mkdir -p {{ restic_summary_log | dirname }}
## 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 %}
{{ restic_path }} backup --quiet --json --exclude-caches {% for i in restic_backup_excluded_path %} -e {{ i }} {% endfor %} {% for i in restic_backup_path %}{{ i }} {% endfor %} > {{ restic_summary_log }}
## récupération de l'espace
{{ restic_path }} forget --prune {{ restic_backup_retention }}
{{ restic_path }} forget --quiet --prune {{ restic_backup_retention }}