Backing up one database

suggest change
pg_dump -Fc -f DATABASE.pgsql DATABASE

The -Fc selects the “custom backup format” which gives you more power than raw SQL; see pg_restore for more details. If you want a vanilla SQL file, you can do this instead:

pg_dump -f DATABASE.sql DATABASE

or even

pg_dump DATABASE > DATABASE.sql

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:


Backup and Restore:
*Backing up one database

Table Of Contents