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