location: source_directories: - / exclude_patterns: - '/dev' - '/media/*' - '/mnt/*' - '/proc' - '/run/*' - '/srv/backups/*.chapril.org' - '/sys' - '/var/cache/*' - '/var/lib/backuppc/*' - '/var/lib/libvirt/images/' repositories: - 'ssh://backup@backup.chapril.org:/srv/backups/{fqdn}' storage: ssh_command: ssh -p 2242 -A archive_name_format: '{now:%Y-%m-%dT%H:%M:%S}' # pour bullseye : borg_cache_directory: /var/cache/borg consistency: check_last: 2 prefix: '20' retention: keep_daily: 7 keep_weekly: 4 prefix: '20' hooks: before_backup: - echo "Launching root backup at $(date -Iseconds)" - for file in /etc/borg/scripts/pre-hooks/* ; do test -e "$file" || continue; echo "Executing $file..."; $file; done after_backup: - for file in /etc/borg/scripts/post-hooks/* ; do test -e "$file" || continue; echo "Executing $file..."; $file; done - echo "Succeeded root backup at $(date -Iseconds)" - borgmatic info --archive latest --json on_error: - echo "Failed root backup at $(date -Iseconds)" # pour bullseye : # after_check: # - echo "Succeeded root checks at $(date -Iseconds)" # after_prune: # - echo "Succeeded root prune at $(date -Iseconds)"