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

chore(lint): link fix; add frontmatter

as-op49ef2018fb01
diff --git a/docs/installation-and-operations/operation/restoring/README.md b/docs/installation-and-operations/operation/restoring/README.md
index 2ceb1a67a8c..127d7146ce8 100644
--- a/docs/installation-and-operations/operation/restoring/README.md
+++ b/docs/installation-and-operations/operation/restoring/README.md
@@ -8,7 +8,7 @@ sidebar_navigation:
This document describes how to restore a complete backup of OpenProject.
-Please look [here](./restoring-a-deleted-project/README.md) if you want to restore a deleted project from a backup.
+Please look [here](./restoring-a-deleted-project/) if you want to restore a deleted project from a backup.
## Package-based installation (DEB/RPM)
diff --git a/docs/installation-and-operations/operation/restoring/restoring-a-deleted-project/README.md b/docs/installation-and-operations/operation/restoring/restoring-a-deleted-project/README.md
index 3f77a41b926..691a850e7ea 100644
--- a/docs/installation-and-operations/operation/restoring/restoring-a-deleted-project/README.md
+++ b/docs/installation-and-operations/operation/restoring/restoring-a-deleted-project/README.md
@@ -1,3 +1,10 @@
+---
+sidebar_navigation:
+ title: Restoring a deleted project
+ priority: 8
+keywords: deleted project, restore, restoring
+---
+
# Restoring a deleted project
Sometimes it may happen that you delete a project on accident.
@@ -37,7 +44,7 @@ the missing data into the current database.
Before performing the next step, edit the `dump.sql` file and change the missing project ID
to the correct value in the head of the file where it says 'DEFINE MISSING PROJECT ID HERE'.
-```
+```shell
cat dump.sql | psql -d openproject_backup
pg_dump -d openproject_backup -t 'missing_*' -f missing_data.sql
@@ -47,7 +54,7 @@ pg_dump -d openproject_backup -t 'missing_*' -f missing_data.sql
Now that we have the missing data, we can restore it in the current database.
-```
+```shell
cat missing_data.sql | psql -d openproject
cat restore.sql | psql -d openproject
```
@@ -68,7 +75,7 @@ and rebuild the hierarchy.
To do this, start an OpenProject console (e.g. `sudo openproject run console`) and execute the following.
-```
+```ruby
p = Project.find_by(name: "Restored project")
p.update_column :lft, nil