(bugfix) preserve saved global backup root in Django setup form

Fix the global config edit view so default initial values are only used
when creating a new config, preventing saved backup_root values from
being hidden by form defaults.

Keep pobsync_home as an internal runtime setting instead of exposing it
in the normal Django setup form.

Mount a host backup directory into Docker at /backups and document
POBSYNC_BACKUP_ROOT so backup_root behaves predictably in containers.
This commit is contained in:
2026-05-19 12:48:32 +02:00
parent 66e1f549b9
commit aea22597ba
6 changed files with 42 additions and 7 deletions

View File

@@ -129,6 +129,15 @@ docker compose up --build web scheduler
```
The container persists `/opt/pobsync` and the SQLite database in Docker volumes.
Backup data is mounted at `/backups` inside the containers. By default this uses `./backups` on the host.
Override it with `POBSYNC_BACKUP_ROOT`:
```
POBSYNC_BACKUP_ROOT=/mnt/backups/pobsync docker compose up --build web scheduler
```
In the Django global config, set the backup root to `/backups` when running in Docker. For local, non-Docker use,
set it directly to the host path, for example `/mnt/backups/pobsync`.
## Docker With MariaDB