OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
improvement for better readability
adam-op35b303644e45
diff --git a/docs/installation-and-operations/operation/restoring/README.md b/docs/installation-and-operations/operation/restoring/README.mdindex 5bcd9777942..e381fc74211 100644--- a/docs/installation-and-operations/operation/restoring/README.md+++ b/docs/installation-and-operations/operation/restoring/README.md@@ -121,21 +121,18 @@ For Docker-based installations, assuming you have a backup as per the procedureLet's assume you want to restore a database dump given in a file, say `openproject.sql`.+This assumes that the database container is called `db_1`. Find out the actual name on your host using `docker ps | postgres`.+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;'`<sup>*</sup>-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 first by `\c openproject` and then 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`--_\* If your database doesn't have an OpenProject user you either have to create one or use which ever user you used before._--* * *--This assumes that the database container is called `db_1`. Find out the actual name on your host using `docker ps | postgres`.+3. Create a user/role for the OpenProject database: `docker exec -it db_1 psql -U postgres -c 'create user openproject;'`+4. Recreate the database using `docker exec -it db_1 psql -U postgres -c 'create database openproject owner openproject;'`+5. Copy the dump onto the container: `docker cp openproject.sql db_1:/`+6. Source the dump with psql on the container: `docker exec -it db_1 psql -U postgres` followed first by `\c openproject` and then by `\i openproject.sql`. You can leave this console by entering `\q` once it's done.+7. Delete the dump on the container: `docker exec -it db_1 rm openproject.sql`+8. Restart the web and worker processes: `docker-compose start web worker`### Using the all-in-one container