Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[infra] Document Sentry backup/restore

Manav Rathi89f1f001adb5
diff --git a/infra/services/sentry/README.md b/infra/services/sentry/README.md
index 37654bc736..a852feb613 100644
--- a/infra/services/sentry/README.md
+++ b/infra/services/sentry/README.md
@@ -135,3 +135,44 @@ If needed, Sentry can be stopped by using
cd /home/ente/sentry
sudo docker compose stop
+
+## Backup / Restore
+
+> [!NOTE]
+>
+> [Upstream docs](https://develop.sentry.dev/self-hosted/backup/#restore)
+
+To backup an existing instance
+
+```sh
+sudo ./scripts/backup.sh
+```
+
+Then retain the following files
+
+```
+sentry/backup.json
+sentry/config.yml
+.env
+```
+
+To restore, run the fresh install. Once it completes, add our custom config
+back, ensuring we don't overwrite anything that the new version has
+
+```sh
+git diff --no-index ../.env .env
+git diff --no-index ../config.yml sentry/config.yml
+```
+
+Copy back the backup and run the restore script
+
+```sh
+cp ../sentry-backup/backup.json sentry
+sudo ./scripts/restore.sh
+```
+
+Now start sentry
+
+```sh
+sudo docker compose up -d
+```