Dump/Restore a database in postgresql
Dump a database
pg_dump -U user -f file.tar -Ft database
Restore a database
pg_restore -U user -d database file.tar
Written by Alejandro Andrés
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Databases
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#