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
note alternative db creation command
ulferts3f64b0b84927
diff --git a/docs/installation-and-operations/misc/time-entries-corrupted-by-10-4/README.md b/docs/installation-and-operations/misc/time-entries-corrupted-by-10-4/README.mdindex 5aaecb658a0..051e6fba9e9 100644--- a/docs/installation-and-operations/misc/time-entries-corrupted-by-10-4/README.md+++ b/docs/installation-and-operations/misc/time-entries-corrupted-by-10-4/README.md@@ -26,6 +26,8 @@ But the reader might deduce the steps neccessary to restore accordingly for a cuAs a result of this step, a second database, not the database OpenProject is currently connecting to, will contain the data of the backup.+### 1.1 Get necessary database information+First, connect to the OpenProject server and get the necessary details about your current database:```bash@@ -40,6 +42,8 @@ $ openproject config:get DATABASE_URLpostgres://openproject:[email protected]:45432/openproject```+### 1.2 Create auxillary database+Using this connection string, the following command will create the database the backup will be restored to (named `openproject_backup` in this example):```bash@@ -54,6 +58,20 @@ $ psql "postgres://openproject:[email protected]:45432/CREATE DATABASE```+The command above might not work for some installations. In that case the following is a viable alternative:++```bash+$ su postgres -c createdb -O <dbusernamer> openproject_backup+```++Example:++```bash+$ su postgres -c createdb -O openproject openproject_backup+```++### 1.3 Restore backup to auxillary database+Next, that newly created database will receive the data from a backup file which typically can be found in `/var/db/openproject/backup````bash