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
Update README.md
Oliver Güntherc35e558e72bd
diff --git a/docs/installation-and-operations/operation/restoring/README.md b/docs/installation-and-operations/operation/restoring/README.mdindex 23f82d42ed7..460203ae280 100644--- a/docs/installation-and-operations/operation/restoring/README.md+++ b/docs/installation-and-operations/operation/restoring/README.md@@ -121,18 +121,20 @@ 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 | grep postgres`.+This assumes that the database container is called `compose_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. 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.-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`+2. Drop the existing, seeded database using `docker exec -it compose_db_1 psql -U postgres -c 'drop database openproject;'`+3. If your database doesn't have an openproject user yet, create it with this command: `docker exec -it compose_db_1 psql -U postgres -c 'create user openproject;'`+4. Recreate the database using `docker exec -it compose_db_1 psql -U postgres -c 'create database openproject owner openproject;'`+5. Copy the dump onto the container: `docker cp openproject.sql compose_db_1:/`+6. Source the dump with psql on the container: `docker exec -it compose_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 compose_db_1 rm openproject.sql`+8. Run the seeder once to perform any migrations `docker-compose start seeder`+9. Restart the web and worker processes: `docker-compose start web worker`+10. Confirm with `docker-compose logs -f` that the processes are starting up correctly.### Using the all-in-one container