sangue/docker/deployment/dumpdb_prod.sh

4 lines
194 B
Bash
Executable File

#! /bin/bash --
set -e
cd "$(dirname "$0")/production"
source .env && PGPASSWORD="$DB_PASSWORD" pg_dump -h localhost -p "${DB_PORT:-5432}" -U "${DB_USER:postgres}" -c -Fp -Z0 "$DB_NAME" | zstd