Skip to content

Commit

Permalink
Fix instructions for database restore in VM
Browse files Browse the repository at this point in the history
Instructions to restore (a copy of) the live database in a dev VM.

See also #189
  • Loading branch information
tomkooij committed Feb 19, 2018
1 parent a3257e4 commit e1eede9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.rst
Expand Up @@ -115,8 +115,9 @@ file into the database, this can be done using the following commands::

$ mv [path/to/publicdb.sql] ./
$ vagrant ssh publicdb
$ pg_restore --clean --if-exists --no-owner --no-acl --schema=public --dbname=publicdb /vagrant/publicdb_dump.sql

$ dropdb --host=localhost --username=postgres publicdb
$ createdb --host=localhost --username=postgres publicdb
$ pg_restore --host=localhost --username=postgres --create --dbname=publicdb /vagrant/publicdb_dump.sql

Important information regarding provisioning the production servers
-------------------------------------------------------------------
Expand Down

0 comments on commit e1eede9

Please sign in to comment.