-
Notifications
You must be signed in to change notification settings - Fork 0
How to restore your local DB with a dump file
Fionna Chan edited this page Oct 19, 2020
·
1 revision
- Download the dump file. It's probably a gzip file.
- Unzip the file.
- Make sure that you have an empty database, i.e. run
mvn liquibase:clearCheckSums liquibase:dropAllatpathmind-database. Remeber to drop all tables and the trigger functions. - Make sure that you have created a user role called
pathmindfor the database. For example, you can runCREATE ROLE pathmind SUPERUSER LOGIN PASSWORD 'something';on psql. - Run
pg_restore -U pathmind -d pathmind dev.sqlon the terminal. Fionna's experience was to explicitly state the location of thedev.sql, i.e.pg_restore -U pathmind -d pathmind C:/downloads/dev.sql