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
added recommended changes
adam-opce9c2c5e63ee
diff --git a/docs/installation-and-operations/operation/restoring/README.md b/docs/installation-and-operations/operation/restoring/README.mdindex e381fc74211..23f82d42ed7 100644--- a/docs/installation-and-operations/operation/restoring/README.md+++ b/docs/installation-and-operations/operation/restoring/README.md@@ -121,13 +121,13 @@ 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`.+This assumes that the database container is called `db_1`. Find out the actual name on your host using `docker ps | grep 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. Create a user/role for the OpenProject database: `docker exec -it db_1 psql -U postgres -c 'create user openproject;'`+3. If your database doesn't have an openproject user yet, create it with this command: `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.