diff --git a/config.yaml b/config.yaml index 37266e1..491efc6 100644 --- a/config.yaml +++ b/config.yaml @@ -64,24 +64,20 @@ checks: # Nombre d'archives à vérifier check_last: 3 -# Commandes/hooks pour notifications (nouvelle syntaxe Borgmatic 2.0) +# Hooks pour notifications (syntaxe Borgmatic 2.0) commands: - - name: "Notification de démarrage" - when: - - before_backup + - before: action + when: [create] run: - echo "Backup démarré" - - name: "Notification de succès" - when: - - after_backup + - after: action + when: [create] run: - echo "Exécution hook de succès" - /etc/borgmatic/hooks/ntfy-success.sh "{archive_name}" "{stats}" - - name: "Notification d'erreur" - when: - - on_error + - after: error run: - echo "Exécution hook d'erreur" - /etc/borgmatic/hooks/ntfy-error.sh "{error}"