Back up, upgrade and recover Logship

Preserve a consistent recovery point and coordinate reader and writer versions.

Back up, upgrade and recover Logship

Before stopping the deployment

Record versions, service roles, volume mounts, storage paths and service identities. Save a query for a known retained record and its expected result. Identify a sample blob if you store blobs. Check file format compatibility. Every collector, executor, compactor and blob-service reader must support V5 before V5 writes resume.

Create a recovery point

Pause ingestion and scheduled writes. For a cold backup, stop services on all participating nodes and capture configuration and persistent volumes together. Include the catalog and any SQLite WAL files, indexes, transaction logs, retained table data and administration account data. Include the catalog’s adjacent identity key or your configured encryption key ring, the token signing key (jwt-signing.key in a single node's data root, or the configured keys) and any cluster transport certificates. Protect those secrets with the backup; a restored jwt-signing.key must stay readable only by the service user. For blob deployments include the master journal, partition data and replica indexes with their payloads. Record original node identities and paths. See identity-provider backup requirements and blob recovery requirements.

Restore this recovery point into an isolated deployment running the original versions. Preserve paths, ownership and keys. Check backend readiness, sign in, run the known-record query and retrieve the sample blob before relying on the backup.

If SQLite reports attempt to write a readonly database on startup, compare the restored catalog file and its parent directory with the original volume. The service identity needs write access to both to open the catalog and create its journal. Restore the original owner and permissions, then repeat the checks.

Upgrade and verify

Keep writes paused while installing the target release on all participating nodes. Preserve configuration and data mounts. With Compose, pull the intended tags and recreate services from the existing project directory. For native services, stage the release and retain site-specific configuration. Start storage and backend roles, then the frontend. Check the backend’s GET /health/ready for HTTP 200, inspect cluster services for the expected readers, and repeat the known-record and blob checks. Resume ingestion, write a test event, and verify its timestamp in the receiving account.

Recover

Stop writers and isolate the affected deployment before restoring. Old binaries cannot read V5 data. To return to a pre-V5 release, restore a compatible pre-upgrade recovery point and its matching binaries together. Restoring that point returns the data to the backup time. Account for subsequent writes before switching traffic. Repeat the readiness, sign-in, retained record, blob and fresh-ingest checks.