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

Backup the entire /etc/openproject folder (#9189)

Oliver Güntherebffdad0eb76
diff --git a/docs/installation-and-operations/operation/restoring/README.md b/docs/installation-and-operations/operation/restoring/README.md
index 02d933a6220..122c0652d6b 100644
--- a/docs/installation-and-operations/operation/restoring/README.md
+++ b/docs/installation-and-operations/operation/restoring/README.md
@@ -43,7 +43,7 @@ sudo tar xzf /var/db/openproject/backup/attachments-20191119210038.tar.gz -C /va
Untar the configuration files to their destination:
```bash
-sudo tar xzf /var/db/openproject/backup/conf-20191119210038.tar.gz -C /etc/openproject/conf.d/
+sudo tar xzf /var/db/openproject/backup/conf-20191119210038.tar.gz -C /etc/openproject
```
If you want to change anything in the configuration, you can also inspect the `/etc/openproject` folder afterwards and change them accordingly.
diff --git a/packaging/scripts/backup b/packaging/scripts/backup
index 6e2e14602b0..541e3232d0a 100755
--- a/packaging/scripts/backup
+++ b/packaging/scripts/backup
@@ -58,11 +58,11 @@ else
echo "* No attachments folder. Ignoring." >&2
fi
-if [ -d "/etc/${APP_NAME}/conf.d" ]; then
+if [ -d "/etc/${APP_NAME}" ]; then
dst="${TARGET}/conf-${timestamp}.tar.gz"
touch "$dst" && chmod 0640 "$dst"
echo -n "* Saving configuration..." >&2
- if tar czf "$dst" -C /etc/${APP_NAME}/conf.d . ; then
+ if tar czf "$dst" -C /etc/${APP_NAME} . ; then
echo " done" >&2
echo "$dst"
else