homelab/roles/any.tools.backup-scripts/defaults/main.yml

57 lines
2.3 KiB
YAML

# List of backup jobs to configure. Each entry creates a systemd service and
# timer. Required keys per entry vary by type:
#
# All types:
# name: (required) unique identifier, used in unit and script filenames
# type: (required) backup template to use: btrfs-subvolume, podman-mysql, podman-postgres, postgres, echo-test
# user: (optional) user to run the backup as; defaults to root
# group: (optional) group to run the backup as; defaults to backups
# timer_delay_sec: (optional) RandomizedDelaySec for the timer; defaults to 30 minutes
#
# btrfs-subvolume:
# path: (required) path to the btrfs subvolume to back up
#
# podman-mysql:
# container: (required) name of the podman container running mysql/mariadb
# mysql_user: (required) mysql user to connect as
# mysql_password: (required) mysql password for the user
# database: (required) mysql database to dump
#
# podman-postgres:
# container: (required) name of the podman container running postgres
# pg_user: (required) postgres user to connect as
# database: (required) postgres database to dump
#
# postgres:
# pwd: (required) working directory for podman compose
# user: (required) postgres user to connect as
# database: (required) postgres database to dump
#
# echo-test:
# lines: (optional) number of log lines to emit; defaults to 10
# interval_sec: (optional) seconds to sleep between lines; defaults to 1
backups: []
# Restic REST server URL to publish backups to
backup_restic_repository: "rest:http://localhost:8000/backups"
# Path to the file containing the Restic repository password
backup_restic_password_file: "/etc/backups/restic_backups_passwd"
# Directory where backup scripts are stored
backup_scripts_dir: "/etc/backups"
# Hour at which all backup timers fire (24h)
backup_timer_hour: "02"
# Minute at which all backup timers fire
backup_timer_minute: "00"
# Randomized delay from start time that services are started
backup_timer_delay_sec: "1800"
# OpenTelemetry collector endpoint for backup tracing
backup_otel_endpoint: "http://localhost:4318"
# OpenTelemetry service name used to identify backup spans
backup_otel_service_name: "backups"