From 92d9b530f3dd55577c09615223281c24f79ff91e Mon Sep 17 00:00:00 2001 From: BeauTroll <-> Date: Tue, 16 Dec 2025 05:32:48 +0100 Subject: [PATCH] fix config format --- config.yaml | 127 +++++++++++++++++++++++++++------------------------- 1 file changed, 67 insertions(+), 60 deletions(-) diff --git a/config.yaml b/config.yaml index c05ed86..f23639e 100644 --- a/config.yaml +++ b/config.yaml @@ -1,77 +1,84 @@ # Configuration Borgmatic pour backup serveur Agence66 # Compatible avec Borgmatic 1.7.7 -# 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 +location: + # 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 -# Repository Borg -# Utilise la variable d'environnement BORG_REPO depuis /etc/borgmatic/.env -repositories: - - "{BORG_REPO}" + # Repository Borg depuis variable d'environnement + repositories: + - "{BORG_REPO}" -# Patterns d'exclusion -exclude_patterns: - - "*.log" - - "*/cache/*" - - "*/tmp/*" - - "**/__pycache__" - - "*/node_modules/*" + # Patterns d'exclusion + exclude_patterns: + - "*.log" + - "*/cache/*" + - "*/tmp/*" + - "**/__pycache__" + - "*/node_modules/*" -# Un seul système de fichiers -one_file_system: false + # Un seul système de fichiers + one_file_system: false -# Format du nom d'archive (compatible avec votre ancien script) -archive_name_format: "backup-{now:%Y%m%d-%H%M}" +storage: + # Format du nom d'archive (compatible avec votre ancien script) + archive_name_format: "backup-{now:%Y%m%d-%H%M}" -# Compression -compression: zstd + # Compression + compression: zstd -# Options SSH -ssh_command: ssh -o StrictHostKeyChecking=accept-new + # Options SSH + ssh_command: ssh -o StrictHostKeyChecking=accept-new -# Politique de rétention -keep_daily: 7 -keep_weekly: 4 -keep_monthly: 6 +retention: + # Politique de rétention + keep_daily: 7 + keep_weekly: 4 + keep_monthly: 6 -# Préfixe des archives -prefix: "backup-" + # Préfixe des archives + prefix: "backup-" -# Vérifications d'intégrité -checks: - - repository - - archives +consistency: + # Vérifications d'intégrité + checks: + - name: repository + frequency: 2 weeks + - name: archives + frequency: 1 month -# Fréquence des vérifications -check_last: 3 + # Fréquence des vérifications + check_last: 3 -# Hooks pour notifications ntfy -before_backup: - - echo "Backup démarré" +hooks: + # Hooks pour notifications ntfy + before_backup: + - echo "Backup démarré" -after_backup: - - /etc/borgmatic/hooks/ntfy-success.sh "{archive_name}" "{stats}" + after_backup: + - /etc/borgmatic/hooks/ntfy-success.sh "{archive_name}" "{stats}" -on_error: - - /etc/borgmatic/hooks/ntfy-error.sh "{error}" -# Commandes PostgreSQL/MySQL si nécessaire -# postgresql_databases: -# - name: all + on_error: + - /etc/borgmatic/hooks/ntfy-error.sh "{error}" -# mysql_databases: -# - name: all + # Commandes PostgreSQL/MySQL si nécessaire + # postgresql_databases: + # - name: all + + # mysql_databases: + # - name: all