How can I export a Postgres database?

ยท 1 minute long

Using pg_dump, which ships with the psql executable, it's a pretty simple progress

pg_dump --dbname= --host= --port= --username= --password --format=c > .dump
# The c in --format=c stands for custom