Files
infra-borgbackup-postgresql/config/backup.conf
T
2026-05-31 17:00:55 +00:00

57 lines
1.9 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# =============================================================================
# backup.conf Konfiguration für borg-backup-postgres.sh
# Kopiere diese Datei nach /etc/borg-backup/backup.conf
# oder lege sie im config/-Verzeichnis ab.
# Passe alle Werte an deine Umgebung an.
# =============================================================================
# --- PostgreSQL-Server -------------------------------------------------------
# IP oder Hostname des PostgreSQL-Servers
PG_HOST="postgres.lan"
# SSH-Benutzer auf dem PostgreSQL-Server (hat sudo-Rechte für pg_dump)
PG_SSH_USER="borgclient"
# PostgreSQL-Systembenutzer (wird per sudo verwendet)
PG_DB_USER="postgres"
# Datenbanken, die gesichert werden sollen (Bash-Array)
PG_DATABASES=(
"myapp_production"
"myapp_staging"
# "weitere_datenbank"
)
# --- SSH ---------------------------------------------------------------------
# Pfad zum privaten SSH-Schlüssel des Raspberry Pi
SSH_KEY_PATH="/home/borgbackup/.ssh/id_ed25519"
# --- Borg Repository ---------------------------------------------------------
# Lokaler Pfad zum Borg-Repository auf dem Raspberry Pi
BORG_REPO="/backup/borg-repo"
# Borg-Passphrase für die Repository-Verschlüsselung
# WICHTIG: Sicher aufbewahren ohne Passphrase sind Backups nicht wiederherstellbar!
BORG_PASSPHRASE="HIER_SICHERES_PASSWORT_EINTRAGEN"
# Kompressionsalgorithmus: none, lz4 (schnell), zstd (gut), lzma (klein)
BORG_COMPRESSION="lz4"
# --- Retention Policy --------------------------------------------------------
# Wie viele Backups je Zeitraum behalten?
KEEP_DAILY=7 # Tägliche Backups: 7 Tage
KEEP_WEEKLY=4 # Wöchentliche Backups: 4 Wochen
KEEP_MONTHLY=6 # Monatliche Backups: 6 Monate
# --- Benachrichtigungen ------------------------------------------------------
# E-Mail-Adresse für Benachrichtigungen (leer lassen = deaktiviert)
NOTIFY_EMAIL=""
# Wall-Nachricht an alle angemeldeten Nutzer senden? (true/false)
NOTIFY_WALL="false"