/
How to generate schema dump on BF side
How to generate schema dump on BF side
Install PostgreSQL utilities on the target host.
Adjust below script (ALL PG Variables) and save in any desired location, then “cd” into that location.
#!/bin/bash
export PGPASSWORD='Please DB password here'
export PGHOST='Please DB DNS hostname here'
export PGDATABASE='Please maintenance DB name here'
export PGUSER='Please DB Admin username here'
export TMPDIR=/home/$(whoami)
rm -f $1.sql || true
pg_dump -n $1 -f $1.sql --verbose
Make saved script executable by: chmod +x {{YourScriptName}}.sh
Execute script with nohup utility
Execution example: nohup {{YourScriptName}}.sh {{fullSchemaName}} > db.log &
copy schema dump to some S3 bucket, generate pre-signed URL and share with requestor.
, multiple selections available,
Related content
DB Dump/Restore
DB Dump/Restore
More like this
RANCHER-314 Add RDS support to PostgreSQL dump job
RANCHER-314 Add RDS support to PostgreSQL dump job
More like this
Workflow for tenants database schema migration
Workflow for tenants database schema migration
More like this
RDS Snapshot names
RDS Snapshot names
More like this
How to test data migration scripts locally
How to test data migration scripts locally
More like this
Hive off database to a separate server
Hive off database to a separate server
More like this