From 9c03ebf8e24423d1905b7ed3a8a26c3ef7d9943c Mon Sep 17 00:00:00 2001 From: BeauTroll <-> Date: Wed, 17 Dec 2025 20:40:07 +0100 Subject: [PATCH] Exclude backup directories and improve YAML formatting MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add exclusion patterns for Nextcloud and Gitea backup directories to avoid backing up redundant data. Also normalize YAML indentation to 2 spaces for consistency. Changes: - Exclude /opt/nextcloud/backups from backups - Exclude /opt/gitea/backups from backups - Add commented suggestions for preview and updater exclusions - Normalize YAML indentation from 4 spaces to 2 spaces 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- config.yaml | 85 ++++++++++++++++++++++++++++------------------------- 1 file changed, 45 insertions(+), 40 deletions(-) diff --git a/config.yaml b/config.yaml index 900bd25..9b1ef2c 100644 --- a/config.yaml +++ b/config.yaml @@ -5,34 +5,40 @@ # Repository Borg - utilise la variable d'environnement repositories: - - path: "${BORG_REPO}" - label: production + - path: "${BORG_REPO}" + label: production # Chemins sources à sauvegarder source_directories: - - /var/www - - /srv/minecraftserver - - /srv/reddiscordbot - - /srv/waltercoiffure - - /etc - - /opt/nextcloud - - /opt/traefik - - /opt/n8n - - /opt/portainer - - /opt/uptime-kuma - - /opt/vaultwarden - - /opt/mailcow-dockerized - - /opt/netdata - - /opt/gitea - - /home + - /var/www + - /srv/minecraftserver + - /srv/reddiscordbot + - /srv/waltercoiffure + - /etc + - /opt/nextcloud + - /opt/traefik + - /opt/n8n + - /opt/portainer + - /opt/uptime-kuma + - /opt/vaultwarden + - /opt/mailcow-dockerized + - /opt/netdata + - /opt/gitea + - /home # Patterns d'exclusion exclude_patterns: - - "*.log" - - "*/cache/*" - - "*/tmp/*" - - "**/__pycache__" - - "*/node_modules/*" + - "*.log" + - "*/cache/*" + - "*/tmp/*" + - "**/__pycache__" + - "*/node_modules/*" + + - "/opt/nextcloud/backups" + #- "/opt/nextcloud/data/appdata_*/preview/*" # Miniatures d'images + #- "/opt/nextcloud/updater-*" # Fichiers de mise à jour + + - "/opt/gitea/backups" # Un seul système de fichiers one_file_system: false @@ -56,32 +62,31 @@ match_archives: "sh:backup-*" # Vérifications d'intégrité checks: - - name: repository - frequency: 2 weeks - - name: archives - frequency: 1 month + - name: repository + frequency: 2 weeks + - name: archives + frequency: 1 month # Nombre d'archives à vérifier check_last: 3 # Hooks pour notifications (syntaxe Borgmatic 2.0) commands: - - before: action - when: [create] - run: - - echo "Backup démarré" + - before: action + when: [create] + run: + - echo "Backup démarré" - - after: action - when: [create] - run: - - echo "Exécution hook de succès" - - /etc/borgmatic/hooks/ntfy-success.sh - - - after: error - run: - - echo "Exécution hook d'erreur" - - /etc/borgmatic/hooks/ntfy-error.sh + - after: action + when: [create] + run: + - echo "Exécution hook de succès" + - /etc/borgmatic/hooks/ntfy-success.sh + - after: error + run: + - echo "Exécution hook d'erreur" + - /etc/borgmatic/hooks/ntfy-error.sh # Commandes PostgreSQL/MySQL si nécessaire # postgresql_databases: # - name: all