From e1eede9e91e93714ce5bb4fa5884c90191f9bd43 Mon Sep 17 00:00:00 2001 From: Tom Kooij Date: Mon, 19 Feb 2018 10:35:41 +0100 Subject: [PATCH] Fix instructions for database restore in VM Instructions to restore (a copy of) the live database in a dev VM. See also #189 --- README.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index b3a997f73..fc47365de 100644 --- a/README.rst +++ b/README.rst @@ -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 -------------------------------------------------------------------