Merge pull request #510 from christianlouis/copilot/extend-sql-backup-restore

feat(backup): extend backup/restore to PostgreSQL and MySQL/MariaDB
This commit is contained in:
Christian Krakau-Louis
2026-03-08 12:02:17 +01:00
committed by GitHub
5 changed files with 941 additions and 104 deletions
+5 -1
View File
@@ -1056,9 +1056,13 @@ Webhook URLs, secrets, and subscribed events are configured per-webhook via the
### Backup & Restore
DocuElevate can automatically back up the SQLite database on a scheduled basis.
DocuElevate automatically backs up the database on a scheduled basis.
Backups are managed from the **Admin → Backup & Restore** dashboard.
Supported database backends: **SQLite** (`.db.gz`), **PostgreSQL** (`.pgsql.gz`), **MySQL / MariaDB** (`.mysql.gz`).
For PostgreSQL and MySQL backups the respective CLI client (`pg_dump` / `psql` or `mysqldump` / `mysql`) must be installed on the Celery worker host.
See the [Database Configuration Guide](DatabaseConfiguration.md#backup-procedures) for setup details.
| **Variable** | **Description** | **Default** |
|--------------------------------|-----------------------------------------------------------------------------------------------|---------------------|
| `BACKUP_ENABLED` | Enable or disable automatic scheduled backups (`True`/`False`). | `True` |