fix config format

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

View File

@@ -1,6 +1,7 @@
# Configuration Borgmatic pour backup serveur Agence66 # Configuration Borgmatic pour backup serveur Agence66
# Compatible avec Borgmatic 1.7.7 # Compatible avec Borgmatic 1.7.7
location:
# Chemins sources à sauvegarder # Chemins sources à sauvegarder
source_directories: source_directories:
- /var/www - /var/www
@@ -19,8 +20,7 @@ source_directories:
- /opt/gitea - /opt/gitea
- /home - /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}"
@@ -35,6 +35,7 @@ exclude_patterns:
# Un seul système de fichiers # Un seul système de fichiers
one_file_system: false one_file_system: false
storage:
# Format du nom d'archive (compatible avec votre ancien script) # Format du nom d'archive (compatible avec votre ancien script)
archive_name_format: "backup-{now:%Y%m%d-%H%M}" archive_name_format: "backup-{now:%Y%m%d-%H%M}"
@@ -44,6 +45,7 @@ compression: zstd
# Options SSH # Options SSH
ssh_command: ssh -o StrictHostKeyChecking=accept-new ssh_command: ssh -o StrictHostKeyChecking=accept-new
retention:
# Politique de rétention # Politique de rétention
keep_daily: 7 keep_daily: 7
keep_weekly: 4 keep_weekly: 4
@@ -52,14 +54,18 @@ keep_monthly: 6
# Préfixe des archives # Préfixe des archives
prefix: "backup-" prefix: "backup-"
consistency:
# Vérifications d'intégrité # Vérifications d'intégrité
checks: checks:
- repository - name: repository
- archives 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:
# Hooks pour notifications ntfy # Hooks pour notifications ntfy
before_backup: before_backup:
- echo "Backup démarré" - echo "Backup démarré"
@@ -69,6 +75,7 @@ after_backup:
on_error: on_error:
- /etc/borgmatic/hooks/ntfy-error.sh "{error}" - /etc/borgmatic/hooks/ntfy-error.sh "{error}"
# Commandes PostgreSQL/MySQL si nécessaire # Commandes PostgreSQL/MySQL si nécessaire
# postgresql_databases: # postgresql_databases:
# - name: all # - name: all