Posted By

jturmel on 08/05/10


Tagged

postgres Postgresql pg


Versions (?)

Export/Import PostgreSQL Database


 / Published in: Bash
 

  1. pg_dump database_name | gzip > database_name_19700101.sql.gz
  2. createdb -O dev database_name
  3. zcat database_name_19700101.sql.gz | psql database_name

Report this snippet  

You need to login to post a comment.