966 B
966 B
Metadata backup and restore runbook
Backup
- Confirm
docker compose psshows exactly one scheduler and one worker. - For an online SQLite backup, run a host-side SQLite
.backupagainst the mountedmetadata.db; do not copy only the main file while WAL writers run. - For a filesystem copy, stop
web,scheduler, andworkerfirst, then retainmetadata.db,metadata.db-wal, andmetadata.db-shmtogether. - Encrypt and test the backup outside the appliance. Never place a database dump in the repository or OCI image.
Restore
- Stop all runtime roles and preserve the failed metadata volume unchanged.
- Restore the complete SQLite backup into the metadata volume with the service user ownership (UID 10001 in the supplied Compose deployment).
- Run
docker compose run --rm migrate current; only start the stack when it reports the expected revision. Validate/readyzand a read-only API request after startup.