working other than minio_root_password_file

This commit is contained in:
notplants
2025-11-06 14:25:27 -05:00
parent 9c6bb70b7a
commit 7846746050
2 changed files with 5 additions and 15 deletions

View File

@ -5,8 +5,7 @@ set -e
BACKUP_FILE='/var/lib/postgresql/data/pgdata/backup.sql'
function backup {
# export PGPASSWORD=$(cat $POSTGRES_PASSWORD_FILE)
export PGPASSWORD="$POSTGRES_PASSWORD"
export PGPASSWORD=$(cat $POSTGRES_PASSWORD_FILE)
pg_dump -U ${POSTGRES_USER} ${POSTGRES_DB} > $BACKUP_FILE
}