Skip to content
Working in development builds

Backups you have actually restored

A backup only counts once it has been restored. ElastiCluster requires backups in production, encrypts them, lets you recover to a point in time into a new cluster, and restores them on a schedule to prove they work, reporting how long the restore took.
Backups tab of orders-db: a 13-day point-in-time window, last backup 9 hours ago, recovery point objective of 60 seconds, an estimated restore time, a timeline of full and incremental backups, WAL archive and drills, and the backup policy.
orders-db’s backups: the point-in-time window, timeline, policy and estimated restore time. Interactive demo, simulated data. Open this screen in the demo

Safe defaults

  • On by default for every cluster outside development, where the environment’s policy requires them, on a default schedule you can change.
  • Encrypted by default. For MongoDB, MariaDB, Valkey and Dragonfly, servers hold only a public key, so a compromised server cannot read older backups; PostgreSQL uses pgBackRest’s repository encryption.
  • Restore to a new cluster by default. Production stays untouched while you check the restored data.
  • Bulk data never passes through the control plane; it goes straight from the servers to the repository.
  • Standard tools and formats, with documented manual restores that work without ElastiCluster.

Methods per engine

EngineMethodDefault schedulePoint-in-time recovery
PostgreSQLpgBackRest (WAL-G planned for v0.7)Full weekly, incremental daily, plus extra incrementals when WAL piles upYes, continuous WAL archiving
MongoDBPhysical hot backupsFull weekly, incremental dailyYes, oplog archiving
MariaDBmariadb-backupFull weekly, incremental dailyYes, binlog archiving
Valkey, DragonflySnapshots taken on a replicaEvery 6 hours, kept 7 daysNo
Garage S3Encrypted bucket mirrorsDailyNo

Point-in-time recovery

Pick a moment inside the recovery window, seven days by default, and ElastiCluster restores the latest backup before it and replays the log up to that point. PostgreSQL can also stop at a transaction, a log position or a named restore point; MongoDB at an oplog timestamp; MariaDB at a GTID.

Before risky operations, such as configuration changes, upgrades or dropping data, a restore point is created automatically. “Restore to just before this operation” then works without guessing clock times.

A fork or a drill can never write into the source cluster’s archive, so experimenting with a copy cannot damage the original’s recovery history. An in-place restore exists for emergencies, as a critical plan with typed confirmation and an optional safety backup first.

Forks

A fork is the latest backup restored into a new cluster that deletes itself after seven days unless you extend it. Use one to test an upgrade, reproduce a bug or give an analyst a copy.

Restore drills

A drill restores a backup into throwaway containers on a server set aside for it, runs checks and throws the copy away. Production clusters are drilled weekly, others monthly, and any cluster can be drilled on demand. For PostgreSQL, the checks verify the signed manifest and the backup’s lineage, run a sample query and run SQL assertions you write yourself. Document counts and validation for MongoDB and key counts for Valkey come with those engines.

Each drill records how long the restore and the log replay took, which turns your recovery-time estimate into a measurement. If the drill server is too small for a full restore, the drill checks the latest full backup and a sample of databases and is reported as partial; production needs full drills or a recorded exception. A failed or overdue drill raises an alert.

Restore drills list: passed runs and one failed run, each with cluster, full or partial drill, the backup used, measured restore time, duration, checks passed and result.
Restore drills across clusters, each with its measured restore time and checks. Interactive demo, simulated data. Open this screen in the demo

Repositories you can trust

PostgreSQL backups go to S3-compatible storage, such as AWS S3, Cloudflare R2, Backblaze B2, Garage or SeaweedFS, over SFTP, or to a filesystem repository such as an NFS share mounted on every server. Garage clusters run by ElastiCluster itself arrive in v0.6, and Google Cloud Storage and Azure are planned for v0.7.

  • A Test button checks a repository end to end, including that a server’s credentials cannot delete old backup versions.
  • Object Lock and least privilege: servers get credentials that cannot destroy history. For most engines, only a short-lived maintenance job holds delete rights; PostgreSQL servers can delete but not remove object versions, on a versioned bucket with Object Lock.
  • Signed manifests: each backup’s manifest is signed by the control plane, so a tampered or overwritten backup is rejected at restore time.
  • A second copy on an immutable repository is required for production when the first one cannot block deletion, planned for v0.7.
  • Retention never deletes the last successful full backup of a cluster that still exists, and pinned backups are kept until you unpin them.

When everything else is gone

A recovery kit, encrypted with a passphrase you choose, holds the repository locations, keys and the key that verifies backup signatures. With it, backups stay restorable even if the control plane and its master key are lost. Manual restores with the engines’ own tools are tested on every release.

When a cluster is deleted, its backups stay available for 30 days and can be restored into a new cluster by ID.

Disaster recovery for PostgreSQL

Planned for v0.7: a standby cluster in another site follows the primary cluster by streaming or by replaying its archive. Switching sites is a planned, lossless operation; promoting the standby after a disaster requires proof that the old site can no longer accept writes. Delayed replicas that trail by a set time, for recovering from a mistaken DROP TABLE, are planned alongside.

Status

Backups, point-in-time recovery, restores, forks and drills for PostgreSQL work in development builds and ship in v0.2, which is not released yet. In the project’s tests on those builds, backup and restore round trips passed against Cloudflare R2, Garage and SeaweedFS, and against a local simulation of AWS S3 and Backblaze B2 (not the live services). The other engines get their backups as each one arrives. In the demo, open orders-db’s Backups tab and choose Restore to walk through a point-in-time restore into a new cluster.

Try the console before it ships

The interactive demo runs the whole console on simulated data. Trigger a failover, approve an AI assistant’s plan, restore a backup to a point in time. Nothing to install.