When using pg_dump
to back up a PostgreSQL database, here are some important flags and options to consider:
-
-d, --dbname=NAME: Specifies the name of the database to dump.
-
-f, --file=FILENAME: Directs the output to the specified file or directory.
-
-F, --format=c|t|p: Specifies the format of the output file (
c
for custom,t
for tar,p
for plain text SQL).