Files
backup-agent/configs/nexusvoice.conf
T

39 lines
1.5 KiB
Plaintext

# =============================================================================
# Deployment config: nexusvoice (/home/acid/nexusvoice — may move to /opt/nexusvoice)
# Used by: borg-backup.sh, restore.sh
# Deploy: BACKUP_CONF=/opt/backup-agent/configs/nexusvoice.conf /opt/backup-agent/borg-backup.sh
# =============================================================================
# === Repo & target ===
NAME="nexusvoice"
REPO="/opt/backups/${NAME}" # adjust if you want the repo elsewhere
TARGET="/home/acid/nexusvoice" # update to /opt/nexusvoice when files move
# === Database (Docker) ===
# Set DB_CONTAINER="" to skip all DB dump steps entirely.
DB_CONTAINER="mariadb" # TODO: confirm container name on this server
DUMP_SUBDIR="mariadb/dump" # relative to $TARGET; dump_db.sh writes here
DUMP_SCRIPT="/home/acid/nexusvoice/mariadb/dump_db.sh"
# === Rclone offsite mirror ===
RCLONE_REMOTE="scaleway"
RCLONE_PATH="cyanet-backups-prod/cilaos" # different directory from srv in same bucket
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"