From 1d15980caebad44c3dd9adb89806d67c99cfe851 Mon Sep 17 00:00:00 2001 From: yu-i-i Date: Wed, 1 Apr 2026 14:49:13 +0200 Subject: [PATCH] How to enable restoring old projects from history --- Extended-CE:-Environment-Variables.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Extended-CE:-Environment-Variables.md b/Extended-CE:-Environment-Variables.md index 46078f4..cb8679b 100644 --- a/Extended-CE:-Environment-Variables.md +++ b/Extended-CE:-Environment-Variables.md @@ -11,7 +11,10 @@ the following variables has been added in Extended CE: - `OVERLEAF_EMAIL_SMTP_PASS_FILE` * Used to provide the email password from a file rather than directly via the environment variable `OVERLEAF_EMAIL_SMTP_PASS`. Useful when used with Docker Compose secrets. - `OVERLEAF_HISTORY_RESTORE` - * If set to `true`, the user can restore projects or files from history snapshots. This functionality has existed in CE for a long time and works without visible issues, but it is still considered experimental. -Note that restoring from history is available only for projects created after this variable was set to `true`. Attempting to restore a history snapshot in older projects results in an error. + * If set to `true`, users can restore projects or files from history snapshots. This functionality has existed in CE for a long time and works without visible issues, but it is still considered experimental. + To enable restoring from history for projects created before this variable was set to `true`, run the following in `mongosh`: + ``` + db.projects.updateMany({}, { $set: { "overleaf.history.rangesSupportEnabled": true } }); + ``` - `OVERLEAF_THEMED_DASHBOARD` * If set to `true`, experimental themed support for project list and admin tools dashboards is enabled.