M19: harden performance and recovery
This commit is contained in:
@@ -52,3 +52,24 @@ docker compose -p mobilityops -f compose.yaml -f compose.unraid.yaml logs --tail
|
||||
docker compose -p mobilityops -f compose.yaml -f compose.unraid.yaml exec api alembic current
|
||||
docker logs --tail=200 n8n
|
||||
```
|
||||
|
||||
## Backup and restore
|
||||
|
||||
Create and structurally verify a timestamped PostgreSQL custom-format backup:
|
||||
|
||||
```bash
|
||||
./deploy/unraid/backup-postgres.sh
|
||||
```
|
||||
|
||||
Copy backups off the server according to the host backup policy. A restore is deliberately
|
||||
guarded and creates an additional safety backup before replacing the database:
|
||||
|
||||
```bash
|
||||
./deploy/unraid/restore-postgres.sh \
|
||||
backups/postgres/mobilityops-YYYYMMDDTHHMMSSZ.dump \
|
||||
RESTORE-MOBILITYOPS
|
||||
```
|
||||
|
||||
The restore stops the API, recreates only the configured MobilityOps database, restarts
|
||||
API/web and verifies the active Alembic revision. Test restores in a disposable environment
|
||||
before using a production backup for incident recovery.
|
||||
|
||||
Reference in New Issue
Block a user