fix deprecated config format
This commit is contained in:
74
config.yaml
74
config.yaml
@@ -1,7 +1,6 @@
|
|||||||
# Configuration Borgmatic pour backup serveur Agence66
|
# Configuration Borgmatic pour backup serveur Agence66
|
||||||
# Compatible avec les backups Borg existants
|
# Compatible avec Borgmatic 1.7.7
|
||||||
|
|
||||||
location:
|
|
||||||
# Chemins sources à sauvegarder
|
# Chemins sources à sauvegarder
|
||||||
source_directories:
|
source_directories:
|
||||||
- /var/www
|
- /var/www
|
||||||
@@ -20,89 +19,58 @@ location:
|
|||||||
- /opt/gitea
|
- /opt/gitea
|
||||||
- /home
|
- /home
|
||||||
|
|
||||||
# Repository Borg (à définir selon votre configuration)
|
# Repository Borg
|
||||||
# Décommentez et adaptez selon votre setup :
|
# Défini via la variable d'environnement BORG_REPO dans /etc/borgmatic/.env
|
||||||
# repositories:
|
# repositories sera lu depuis $BORG_REPO
|
||||||
# - /path/to/local/repo
|
|
||||||
# - ssh://user@backup-server/path/to/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 fichier de config
|
# 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 format actuel)
|
archive_name_format: "backup-{now:%Y%m%d-%H%M}"
|
||||||
archive_name_format: 'backup-{now:%Y%m%d-%H%M}'
|
|
||||||
|
|
||||||
# Compression (identique à votre config)
|
# Compression
|
||||||
compression: zstd
|
compression: zstd
|
||||||
|
|
||||||
# Chiffrement - décommentez et configurez si nécessaire
|
# Options SSH
|
||||||
# encryption_passphrase: sera lu depuis la variable d'environnement BORG_PASSPHRASE
|
|
||||||
|
|
||||||
# Vérification de l'intégrité du repo
|
|
||||||
check_last: 3
|
|
||||||
|
|
||||||
# Options supplémentaires
|
|
||||||
ssh_command: ssh -o StrictHostKeyChecking=accept-new
|
ssh_command: ssh -o StrictHostKeyChecking=accept-new
|
||||||
|
|
||||||
retention:
|
# Politique de rétention
|
||||||
# Politique de rétention (identique à votre config)
|
|
||||||
keep_daily: 7
|
keep_daily: 7
|
||||||
keep_weekly: 4
|
keep_weekly: 4
|
||||||
keep_monthly: 6
|
keep_monthly: 6
|
||||||
|
|
||||||
# Préfixe des archives à considérer
|
# Préfixe des archives
|
||||||
prefix: 'backup-'
|
prefix: "backup-"
|
||||||
|
|
||||||
consistency:
|
|
||||||
# Vérifications d'intégrité
|
# Vérifications d'intégrité
|
||||||
checks:
|
checks:
|
||||||
- name: repository
|
- repository
|
||||||
frequency: 2 weeks
|
- archives
|
||||||
- name: archives
|
|
||||||
frequency: 1 month
|
|
||||||
|
|
||||||
# Vérifier uniquement les dernières archives pour économiser du temps
|
# 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é: $(date)"
|
- 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}"
|
||||||
|
|
||||||
# Actions avant/après
|
|
||||||
before_actions:
|
|
||||||
- systemctl is-active docker || systemctl start docker
|
|
||||||
|
|
||||||
# Commandes PostgreSQL/MySQL si nécessaire
|
# Commandes PostgreSQL/MySQL si nécessaire
|
||||||
# postgresql_databases:
|
# postgresql_databases:
|
||||||
# - name: all
|
# - name: all
|
||||||
# format: custom
|
|
||||||
|
|
||||||
# mysql_databases:
|
# mysql_databases:
|
||||||
# - name: all
|
# - name: all
|
||||||
# format: sql
|
|
||||||
|
|
||||||
output:
|
|
||||||
# Niveau de verbosité (0 = minimal, 1 = normal, 2 = verbeux)
|
|
||||||
verbosity: 1
|
|
||||||
|
|
||||||
# Afficher les statistiques
|
|
||||||
stats: true
|
|
||||||
|
|
||||||
# Envoyer les logs vers syslog
|
|
||||||
syslog_facility: LOG_USER
|
|
||||||
|
|||||||
Reference in New Issue
Block a user