✨: restic munin plugins
This commit is contained in:
@@ -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 }}
|
||||
|
Reference in New Issue
Block a user