← All tools

Litestream Gem

Continuously stream SQLite changes to S3-compatible storage.

What it is

Litestream runs alongside your app and replicates the SQLite write-ahead log to object storage within seconds, so a single-server SQLite app gets point-in-time restore without a database server.

Instead of

Nightly cron backups of a .sqlite file, or moving to Postgres just for durability

Reach for it when

You run SQLite in production and losing a day of data would hurt.

Try it in a few minutes

litestream replicate app.db s3://my-bucket/app.db
# restore:
litestream restore -o app.db s3://my-bucket/app.db

Related

Testcontainers Gem

Spin up real databases and services in Docker from inside your tests.

Instead of: Mocked database layers, shared test databases, hand-written docker-compose setup