fix config format
This commit is contained in:
79
config.yaml
79
config.yaml
@@ -1,8 +1,9 @@
|
|||||||
# 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
|
||||||
|
source_directories:
|
||||||
- /var/www
|
- /var/www
|
||||||
- /srv/minecraftserver
|
- /srv/minecraftserver
|
||||||
- /srv/reddiscordbot
|
- /srv/reddiscordbot
|
||||||
@@ -19,59 +20,65 @@ 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}"
|
||||||
|
|
||||||
# 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
|
||||||
|
before_backup:
|
||||||
- echo "Backup démarré"
|
- 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
|
||||||
|
|||||||
Reference in New Issue
Block a user