Skip to content

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

update versions in docker backup/restore docs

Markus Kahle94ac46df7be
diff --git a/docs/installation-and-operations/operation/backing-up/README.md b/docs/installation-and-operations/operation/backing-up/README.md
index a5f613c8eec..078affa9810 100644
--- a/docs/installation-and-operations/operation/backing-up/README.md
+++ b/docs/installation-and-operations/operation/backing-up/README.md
@@ -62,7 +62,7 @@ sudo mkdir -p /var/lib/openproject/{pgdata,assets}
docker run -d -p 8080:80 --name openproject -e SECRET_KEY_BASE=secret \
-v /var/lib/openproject/pgdata:/var/openproject/pgdata \
-v /var/lib/openproject/assets:/var/openproject/assets \
- openproject/community:10
+ openproject/community:12
```
Then you would need to backup the `/var/lib/openproject` folder (for instance to S3 or FTP server).
@@ -82,7 +82,7 @@ This assumes that the database container is called `db_1`. Find out the actual n
If you need a regular dump of the database you can get one using `pg_dump` like this:
```
-docker exec -e PGPASSWORD=openproject -it $OP_CONTAINER_NAME pg_dump -U openproject -h localhost -d openproject -x -O > openproject.sql
+docker exec -it $OP_CONTAINER_NAME su - postgres -c 'pg_dump -d openproject -x -O' > openproject.sql
```
Where `$OP_CONTAINER_NAME` is the name of your OpenProject container. If you don't know it you can find it using `docker ps | grep openproject`.
diff --git a/docs/installation-and-operations/operation/restoring/README.md b/docs/installation-and-operations/operation/restoring/README.md
index cc0657ba40f..5bcd9777942 100644
--- a/docs/installation-and-operations/operation/restoring/README.md
+++ b/docs/installation-and-operations/operation/restoring/README.md
@@ -160,11 +160,10 @@ mkdir /var/lib/openproject/{pgdata,assets}
Next we need to initialize the database.
```
-docker run --rm -v /var/lib/openproject/pgdata:/var/openproject/pgdata -it openproject/community:11
+docker run --rm -v /var/lib/openproject/pgdata:/var/openproject/pgdata -it openproject/community:12
```
-As soon as you see `CREATE ROLE` and `Migrating to ToV710AggregatedMigrations (10000000000000)`
-or lots of `create_table` in the container's output you can kill it by pressing Ctrl + C.
+As soon as you see `Database setup finished.` in the container's output you can kill it by pressing Ctrl + C.
It may take a moment to shut down.
This then has initialized the database under `/var/lib/openproject/pgdata` on your docker host.
@@ -173,7 +172,7 @@ This then has initialized the database under `/var/lib/openproject/pgdata` on yo
Now we can restore the database. For this we mount the initialized `pgdata` folder using the postgres docker container.
```
-docker run --rm -d --name postgres -v /var/lib/openproject/pgdata:/var/lib/postgresql/data postgres:9.6
+docker run --rm -d --name postgres -v /var/lib/openproject/pgdata:/var/lib/postgresql/data postgres:13
```
Once the container is ready you can copy your SQL dump onto it and start `psql`.