DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Backuping Up/restring Pgsql

05.30.2006
| 1947 views |
  • submit to reddit
        I always forget this, or get it mixed up with MySQL:

pg_dump dbname > dbname.sql
cat dbname.sql | psql dbname