From e2b3bf161bc6a8af594bc4e39adffc5544f5ce43 Mon Sep 17 00:00:00 2001 From: Markus Kahl Date: Thu, 20 May 2021 14:00:31 +0100 Subject: [PATCH] added missing quotes --- .../operation/restoring/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/installation-and-operations/operation/restoring/README.md b/docs/installation-and-operations/operation/restoring/README.md index 122c0652d6..1b05769a9f 100644 --- a/docs/installation-and-operations/operation/restoring/README.md +++ b/docs/installation-and-operations/operation/restoring/README.md @@ -124,10 +124,10 @@ Let's assume you want to restore a database dump given in a file, say `openproje If you are using docker-compose this is what you do after you started everything for the first time using `docker-compose up -d`: 1. Stop the OpenProject container using `docker-compose stop web worker`. -2. Drop the existing, seeded database using `docker exec -it db_1 psql -U postgres -c 'drop database openproject;` -3. Recreate the database using `docker exec -it db_1 psql -U postgres -c 'create database openproject owner openproject;` +2. Drop the existing, seeded database using `docker exec -it db_1 psql -U postgres -c 'drop database openproject;'` +3. Recreate the database using `docker exec -it db_1 psql -U postgres -c 'create database openproject owner openproject;'` 4. Copy the dump onto the container: `docker cp openproject.sql db_1:/` -5. Source the dump with psql on the container: `docker exec -it db_1 psql -U postgres` followed by `\i openproject.sql` +5. Source the dump with psql on the container: `docker exec -it db_1 psql -U postgres` followed by `\i openproject.sql`. You can leave this console by entering `\q` once it's done. 6. Delete the dump on the container: `docker exec -it db_1 rm openproject.sql` 7. Restart the web and worker processes: `docker-compose start web worker`