added missing quotes

pull/9295/head
Markus Kahl 4 years ago
parent 93faf5b5dd
commit e2b3bf161b
  1. 6
      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`

Loading…
Cancel
Save