PostgreSQL Backup and Restore Commands

Just a quick note:

Backup: $ pg_dump -U {user-name} {source_db} -f {dumpfilename.sql}
Restore: $ psql -U {user-name} -d {desintation_db} -f {dumpfilename.sql}
Lifted from this great post @ TGS



  • kannanhudson

    Simple awesome thanks

  • kannanhudson

    Simple awesome thanks