Update configs to match real environment
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
# =============================================================================
|
||||
# Deployment config: srv (primary server — /home/srv/files/content)
|
||||
# Used by: borg-backup.sh, restore.sh
|
||||
# Deploy: BACKUP_CONF=/opt/backup-agent/configs/srv.conf /opt/backup-agent/borg-backup.sh
|
||||
# (or symlink configs/srv.conf -> ../backup.conf next to the scripts)
|
||||
# =============================================================================
|
||||
|
||||
# === Repo & target ===
|
||||
NAME="chaudron"
|
||||
REPO="/home/srv/files/backups/${NAME}"
|
||||
TARGET="/home/srv/files/content"
|
||||
|
||||
# === Database (Docker) ===
|
||||
# Set DB_CONTAINER="" to skip all DB dump steps entirely.
|
||||
DB_CONTAINER="mariadb"
|
||||
DUMP_SUBDIR="mariadb/dump" # relative to $TARGET; dump_db.sh writes here
|
||||
DUMP_SCRIPT="/opt/backup-agent/dump_db.sh"
|
||||
|
||||
# === Rclone offsite mirror ===
|
||||
RCLONE_REMOTE="scaleway"
|
||||
RCLONE_PATH="cyanet-backups-prod/${NAME}"
|
||||
RCLONE_MAX_DELETE=200
|
||||
|
||||
# === Credentials ===
|
||||
BORG_PASSPHRASE_FILE="/root/.borg-passphrase"
|
||||
ROOT_PASSWORD_FILE="/root/.mariadb-root.pw" # restore only; needs CREATE/DROP
|
||||
|
||||
# === Paths ===
|
||||
REPO_MOUNT="" # if non-empty, checked as a mountpoint
|
||||
LOCKFILE="/var/lock/borg-backup.lock"
|
||||
LOGDIR="/var/log/borg"
|
||||
LOG_RETENTION_DAYS=90
|
||||
|
||||
# === Timeouts ===
|
||||
DB_START_TIMEOUT=180
|
||||
CREATE_TIMEOUT="6h"
|
||||
PRUNE_TIMEOUT="2h"
|
||||
SYNC_TIMEOUT="12h"
|
||||
CHECK_TIMEOUT="4h"
|
||||
Reference in New Issue
Block a user