ScalixScalix Docs
Sign up

Backups

Automatic backups, point-in-time recovery, and data export

Automatic Backups

ScalixNova backs up your database automatically. This gives you:

  • Automatic base backups plus WAL archiving, with no action required from you
  • Configurable retention (default: 7 days)
  • Encrypted base backups + WAL in EU data centres (Falkenstein primary, nightly off-site copy in Helsinki), with point-in-time recovery

Point-in-Time Recovery

Restore your database to any archived point within the retention window. WAL is archived on a five-minute bound while your database is active, and the open segment is also shipped when the database suspends, so the most recent restorable point is typically within five minutes of your latest write. A restore targeting a moment after the last archived point returns a 409 with guidance rather than silently restoring older data.

There are two distinct operations:

  • Restore to a timestamp: POST /api/v1/tenants/{tenant_id}/pitr/restore restores by timestamp, or to the latest recoverable point.
  • Branch at an LSN: POST /api/v1/tenants/{tenant_id}/timelines/{timeline_id}/branch with branch_lsn creates an isolated branch at a specific LSN (omit it to branch at the latest LSN).

Branching takes an LSN, not a timestamp. To recover to a wall-clock time, use the PITR restore endpoint.

Manual Export

Exports also work from the console, the REST API, or the SDKs; the direct PostgreSQL wire endpoint works with any pg_dump-compatible client.

Export your database:

bash
scalix-cloud export db --output ./backup/

This creates schema.sql and data.dump files in the output directory using pg_dump.

Full Project Export

Export all project data (database, KV store, storage):

bash
scalix-cloud export all --output scalix_export.tar.gz

This creates a tar.gz archive containing:

  • database/schema.sql: database schema
  • database/data.dump: database data
  • kv/pairs.json: all key-value pairs
  • storage/: all storage objects

Backup Storage

Base backups and archived WAL are stored encrypted in object storage (MinIO, S3-compatible) in the same region as your database. The full restore procedure is documented and was verified when the backup system was set up; routine restore drills are being operationalized.

Off-site backup copies are live; continuous cross-region replication is not. Every night at 04:00 UTC the full pg_dumpall of your databases and the archived WAL + base backups are pushed to a second facility: a client-side encrypted, deduplicated, compressed borg archive on Hetzner Storage Box in Helsinki (HEL1), while the primary runs in Falkenstein (FSN1) — a different region. Retention is 14 daily / 8 weekly / 6 monthly archives, and a further copy is held outside the cloud provider entirely. A region-level failure therefore does not take your backups with your database: the previous night's snapshot survives off-region and is recoverable.

What is NOT offered today: a customer-visible, continuously replicating cross-region database copy, or self-service restore of the off-site archive. The off-site leg is vendor-managed and daily — treat its RPO as ~24 hours, independent of the five-minute in-region WAL bound for PITR. Restoring from an off-site archive is a support-run procedure, and routine restore drills are being operationalized. You can always hold your own copy: use Manual Export or the full-project export above.

Retention Configuration

Backup retention is configured per tenant. Contact support or use the admin API to adjust retention periods beyond the default 7 days.