Update pg_backup.sh

This commit is contained in:
2026-06-22 18:37:15 +00:00
parent f783d9988b
commit a081d1dba0

View File

@ -4,9 +4,7 @@
set -e set -e
# discourse/postgres keeps the live cluster at a versioned PGDATA under the # constants
# /var/lib/postgresql mount. Write the dump at the volume root so backupbot's
# `postgresql_data.path: backup.sql` label captures it.
BACKUP_FILE='/var/lib/postgresql/backup.sql' BACKUP_FILE='/var/lib/postgresql/backup.sql'
DATADIR="${PGDATA:-/var/lib/postgresql/18/docker}" DATADIR="${PGDATA:-/var/lib/postgresql/18/docker}"
DB_NAME="${POSTGRES_DB:-discourse}" DB_NAME="${POSTGRES_DB:-discourse}"