fix config format

This commit is contained in:
BeauTroll
2025-12-16 05:32:48 +01:00
parent 4631a8208b
commit 92d9b530f3

View File

@@ -1,77 +1,84 @@
# Configuration Borgmatic pour backup serveur Agence66 # Configuration Borgmatic pour backup serveur Agence66
# Compatible avec Borgmatic 1.7.7 # Compatible avec Borgmatic 1.7.7
# Chemins sources à sauvegarder location:
source_directories: # Chemins sources à sauvegarder
- /var/www source_directories:
- /srv/minecraftserver - /var/www
- /srv/reddiscordbot - /srv/minecraftserver
- /srv/waltercoiffure - /srv/reddiscordbot
- /etc - /srv/waltercoiffure
- /opt/nextcloud - /etc
- /opt/traefik - /opt/nextcloud
- /opt/n8n - /opt/traefik
- /opt/portainer - /opt/n8n
- /opt/uptime-kuma - /opt/portainer
- /opt/vaultwarden - /opt/uptime-kuma
- /opt/mailcow-dockerized - /opt/vaultwarden
- /opt/netdata - /opt/mailcow-dockerized
- /opt/gitea - /opt/netdata
- /home - /opt/gitea
- /home
# Repository Borg # Repository Borg depuis variable d'environnement
# Utilise la variable d'environnement BORG_REPO depuis /etc/borgmatic/.env repositories:
repositories: - "{BORG_REPO}"
- "{BORG_REPO}"
# Patterns d'exclusion # Patterns d'exclusion
exclude_patterns: exclude_patterns:
- "*.log" - "*.log"
- "*/cache/*" - "*/cache/*"
- "*/tmp/*" - "*/tmp/*"
- "**/__pycache__" - "**/__pycache__"
- "*/node_modules/*" - "*/node_modules/*"
# Un seul système de fichiers # Un seul système de fichiers
one_file_system: false one_file_system: false
# Format du nom d'archive (compatible avec votre ancien script) storage:
archive_name_format: "backup-{now:%Y%m%d-%H%M}" # Format du nom d'archive (compatible avec votre ancien script)
archive_name_format: "backup-{now:%Y%m%d-%H%M}"
# Compression # Compression
compression: zstd compression: zstd
# Options SSH # Options SSH
ssh_command: ssh -o StrictHostKeyChecking=accept-new ssh_command: ssh -o StrictHostKeyChecking=accept-new
# Politique de rétention retention:
keep_daily: 7 # Politique de rétention
keep_weekly: 4 keep_daily: 7
keep_monthly: 6 keep_weekly: 4
keep_monthly: 6
# Préfixe des archives # Préfixe des archives
prefix: "backup-" prefix: "backup-"
# Vérifications d'intégrité consistency:
checks: # Vérifications d'intégrité
- repository checks:
- archives - name: repository
frequency: 2 weeks
- name: archives
frequency: 1 month
# Fréquence des vérifications # Fréquence des vérifications
check_last: 3 check_last: 3
# Hooks pour notifications ntfy hooks:
before_backup: # Hooks pour notifications ntfy
- echo "Backup démarré" before_backup:
- echo "Backup démarré"
after_backup: after_backup:
- /etc/borgmatic/hooks/ntfy-success.sh "{archive_name}" "{stats}" - /etc/borgmatic/hooks/ntfy-success.sh "{archive_name}" "{stats}"
on_error: on_error:
- /etc/borgmatic/hooks/ntfy-error.sh "{error}" - /etc/borgmatic/hooks/ntfy-error.sh "{error}"
# Commandes PostgreSQL/MySQL si nécessaire
# postgresql_databases:
# - name: all
# mysql_databases: # Commandes PostgreSQL/MySQL si nécessaire
# - name: all # postgresql_databases:
# - name: all
# mysql_databases:
# - name: all