pg_dump
Verified for current stable LTS
Pg Dump Commands
Pg Dump command syntax with verified terminal examples.
Commands
12 commands for Pg Dump
pg_dump Operations
Pg Dump Command: Dump Database Custom Format With Output
pg_dump -F c <db_name> > <output_file.dump> pg_dump Operations
Pg Dump Command: Dump Database Custom Host Port
pg_dump -h <host> -p <port> <db_name> > <output_file.sql> pg_dump Operations
Pg Dump Command: Dump Database Custom Host Port With Output
pg_dump -h <host> -p <port> <db_name> > <output_file.sql> pg_dump Operations
Pg Dump Command: Dump Database Custom Username
pg_dump -U <username> <db_name> > <output_file.sql> pg_dump Operations
Pg Dump Command: Dump Database Custom Username With Output
pg_dump -U <username> <db_name> > <output_file.sql> pg_dump Archive
Pg Dump Command: Dump Database Into Custom Format Archive
pg_dump -F c <db_name> > <output_file.dump> pg_dump Operations
Pg Dump Command: Dump Database Into Sql Script
pg_dump <db_name> > <output_file.sql> pg_dump Operations
Pg Dump Command: Dump Database Into Sql Script With Output
pg_dump <db_name> > <output_file.sql> pg_dump Operations
Pg Dump Command: Dump Only Data With Output
pg_dump -a <db_name> > <path/to/output_file.sql> pg_dump Operations
Pg Dump Command: Dump Only Database Data Into Sql Script
pg_dump -a <db_name> > <path/to/output_file.sql> pg_dump Operations
Pg Dump Command: Dump Only Schema Into Sql Script
pg_dump -s <db_name> > <path/to/output_file.sql> pg_dump Operations
Pg Dump Command: Dump Only Schema With Output
pg_dump -s <db_name> > <path/to/output_file.sql> Suggest a Pg Dump Command
Submit missing workflows, corrections, or verified alternatives for this tool.
FAQ
Coverage: Focused examples for common Pg Dump workflows.
Verified version: current stable LTS.
Verification: Test commands in a disposable workspace and submit notes for edge cases.