Backup Postgres Database
pg_dump -h localhost -U postgres -W -d mydb > mydb.sql
Proud Porcupine
pg_dump -h localhost -U postgres -W -d mydb > mydb.sql
pg_dump -U postgres mydb > mydb.sql