Answers for "restore backup file postgres"

SQL
2

backup postgres database

pg_dump -h localhost -U postgres -W -d mydb > mydb.sql
Posted by: Guest on July-07-2021
0

restore backup "text" postgresql command line

-- My solution was using DBeaver without using commands

psql -U username -d dbname < filename.sql

-- For Postgres versions 9.0 or earlier
psql -U username -d dbname -1 -f filename.sql
Posted by: Guest on December-02-2021

Code answers related to "restore backup file postgres"

Code answers related to "SQL"

Browse Popular Code Answers by Language