postgresql pg_dump
pg_dump -U user -d db_name -h 127.0.0.1 > dump.sql
postgresql pg_dump
pg_dump -U user -d db_name -h 127.0.0.1 > dump.sql
postgresql dump and restore db
#To dump a database called mydb into a SQL-script file:
pg_dump mydb > db.sql
#To reload such a script into a (freshly created) database named newdb:
psql -d newdb -f db.sql
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us