Postgres - How to dump a database
Dump a single database:
$ pg_dump -U username dbname -f dumpfile.sql
Dump all databases:
$ pg_dumpall -U username > dumpfile.sql
Written by Nícolas Lazarte Kaqui
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Psql
Authors
Related Tags
#psql
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#