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.
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.
- 1Snapshots
A zstd-compressed snapshot goes to the bucket on a schedule: daily by default.
- 2The log, every few minutes
Write-ahead log bundles are archived continuously, every 5 minutes by default. That interval is the recovery point.
- 3Something goes wrong
A bad migration runs at 09:57.
- 4Pick the cut
RESTORE … AT TIME '09:55' takes the last snapshot before it and the log bundles up to the cut.
- 5Replay to the cut
The log is replayed and stops exactly at the last flush at or before 09:55. Nothing half-restored is visible.
- 6Swap in, keep the old
The restored directory is swapped in atomically. The damaged one is renamed, never deleted.
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
rasterizeddb_core --location /var/lib/rasterized \ --s3-bucket my-backups --s3-region eu-central-1 \ --s3-prefix prod/orders
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.
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';
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
# 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'