NEW RasterizedDB 1.1.0 is out: sharding and the gateway, the message broker, roles and row-level security, compression, .NET on NuGet, and the enterprise edition. What's new ›
BACKUP & RECOVERY

Back to any second, from S3.

Name a bucket and the server snapshots on a schedule and archives its write-ahead log continuously. Restore a whole host, or rewind past a bad migration to the last flush before a timestamp, onto a new machine or beside the damaged copy.

HOW IT WORKS · ANIMATED 12 s cycle

Snapshots, a log stream, and any second in between

The server snapshots on a schedule and archives its write-ahead log in bundles. A restore takes the last snapshot before the target and replays the log up to it.

S3 · s3://my-backups/prod/orders any S3-compatible store · zstd · multipart 00:0003:0006:0009:0010:00 snapshot00:00 WAL bundles · every 5 min 09:57 bad migration cut 09:55 REPLAY /var/lib/rasterized✓ restored to 09:55, swapped in /var/lib/rasterized.pre-restore-…kept, never deleted
  1. 1
    Snapshots

    A zstd-compressed snapshot goes to the bucket on a schedule: daily by default.

  2. 2
    The log, every few minutes

    Write-ahead log bundles are archived continuously, every 5 minutes by default. That interval is the recovery point.

  3. 3
    Something goes wrong

    A bad migration runs at 09:57.

  4. 4
    Pick the cut

    RESTORE … AT TIME '09:55' takes the last snapshot before it and the log bundles up to the cut.

  5. 5
    Replay to the cut

    The log is replayed and stops exactly at the last flush at or before 09:55. Nothing half-restored is visible.

  6. 6
    Swap in, keep the old

    The restored directory is swapped in atomically. The damaged one is renamed, never deleted.

1 / 3

Turn it on

  • AWS, MinIO, R2, B2, Wasabi, RustFS: any S3-compatible endpoint
  • zstd-compressed snapshots and log bundles, multipart uploads
  • A snapshot every day and a log flush every 5 minutes by default: that flush interval is the recovery point
  • Retention, rollover and pruning built in
  • Starts even when the bucket is down, holding the log locally until it answers
shell
rasterizeddb_core --location /var/lib/rasterized \
  --s3-bucket my-backups --s3-region eu-central-1 \
  --s3-prefix prod/orders
2 / 3

From SQL

A restore from SQL always writes a new directory, so a running server never has its files swapped underneath it. In-place restore runs before anything opens.

SQL
BACKUP DATABASE;
BACKUP WAL;                       -- a point-in-time barrier now
SHOW BACKUPS;

RESTORE DATABASE FROM S3 TO '/var/lib/rasterized-restored';
RESTORE DATABASE FROM S3 TO '/tmp/verify' AT TIME '2026-08-20T10:00:00Z';
RESTORE DATABASE FROM SNAPSHOT 'snap-20260820T134737Z-b57e1f06' TO '/tmp/verify';
3 / 3

Recovering a lost host

  • --restore-replace renames the old directory; it never deletes the last local copy
  • Nothing half-restored is ever visible: replay, then an atomic swap
  • Resumable downloads, CRC on every archive entry, log coverage checked on both sides
  • Branches can be made from any archived point too
shell
# Rebuild onto a fresh machine and start serving.
rasterizeddb_core --location /var/lib/rasterized \
  --s3-bucket my-backups --s3-prefix prod/orders --restore-from-s3

# Or rewind past a bad migration, keeping the damaged copy.
rasterizeddb_core ... --restore-from-s3 --restore-replace \
  --restore-at-time '2026-08-20T09:55:00Z'
✓ page rendered in 205 µs axum + tera + htmx · no other javascript