#! /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