Litestream v0.5.0 is Here

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

Litestream v0.5.0 restores SQLite backups from about a dozen files instead of thousands, and a read-replica VFS feature lets applications read directly from S3 while the database hydrates.

Read this as

Litestream is a free tool that backs up small databases built with SQLite, software that stores data as 4,096-byte 'pages', by copying changed pages to cloud storage like S3. Version 0.5.0 rewrites how it stores those backups, compressing them so a full restore needs only about a dozen files. This fixes a flaw where busy tables created thousands of near-identical backup copies. Its creator, Ben Johnson, also plans read replicas that read straight from S3.

Litestream, the widely used SQLite backup tool, has released v0.5.0 after a long gap during which its creator Ben Johnson built the alternative LiteFS, then returned. The new LTX file format compacts changes into layered time windows (30 seconds, 5 minutes, 1 hour), cutting restore to roughly a dozen files. Teams running SQLite in production gain faster, point-in-time recovery at lower storage overhead. Read replicas via S3 are announced but not yet shipped.

Litestream v0.5.0 replaces its page-replication scheme with the LTX format borrowed from LiteFS. Previously, sequential inserts hitting one 4096-byte page produced many slightly different replicated copies; LTX compaction now merges files with no duplicated pages across three levels (30s, 5m, 1h), so point-in-time restore averages a dozen files. Upcoming: a SQLite VFS extension for read replicas that serves reads from S3 while hydrating locally.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

Litestream SQLite LiteFS Ben Johnson S3 LTX Fly.io

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading