selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

Litestream logo

Self-host Litestream

v0.5.18

Streaming replication and disaster recovery for SQLite

BetaOpen SourceApache-2.0
docker run -v /local/path/to/data:/data -v /local/path/to/litestream.yml:/etc/litestream.yml litestream/litestream replicate
Updatedlast week
LanguageGo
Setup difficultyModerate
Stars
14 619
Docker
litestream/litestream

What is Litestream?

Litestream alternatives

Should you self-host Litestream?

Litestream scores 71/100 on selfhost.directory (how scoring works) and ranks #5 of 46 in Backup. It has 14 619 GitHub stars, +109 in the last 30 days.

It shipped 11 stable releases in the past year. The latest, v0.5.18, came out on 3 November 2026. New versions land roughly every 3 weeks.

Setup is moderate: expect some configuration beyond a single command. An official Docker image is available. It is Apache-2.0-licensed and written mostly in Go.

Its closest alternative on selfhost.directory is Restic (82/100, 37 215 stars). It scores higher overall, so compare the two before you pick. See Litestream vs Restic side by side.

Features

  • Backup & Restore
  • Cloud and file storage backends for replicas
  • Continuous streaming replication of SQLite databases
  • Daemon control via IPC socketSocket disabled by default.
  • Directory replication
  • Heartbeat health monitoring
  • MCP server for AI assistants
  • Multi-database replication
  • No-code integration with existing apps
  • Process supervision
  • Prometheus metrics export
  • Read-only VFS replicas
  • Server-side storage encryption (S3)Age client-side encryption is unsupported in v0.5.x.
  • Tiered LTX compaction and snapshots

Litestream README

Litestream GitHub release (latest by date) Status GitHub Docker Pulls

Litestream is a standalone disaster recovery tool for SQLite. It runs as a background process and safely replicates changes incrementally to another file or S3. Litestream only communicates with SQLite through the SQLite API so it will not corrupt your database.

If you need support or have ideas for improving Litestream, please visit GitHub Issues. Please visit the Litestream web site for installation instructions and documentation.

For optional service confinement, see the systemd hardening guide.

If you find this project interesting, please consider starring the project on GitHub.

How to install Litestream

Install Litestream with Docker

Environment variables
LITESTREAM_ACCESS_KEY_ID, LITESTREAM_SECRET_ACCESS_KEY
docker run \
  -v /local/path/to/data:/data \
  -v /local/path/to/litestream.yml:/etc/litestream.yml \
  litestream/litestream replicate

Official image on Docker Hub; also a hardened scratch variant (0.5-scratch tag). Guides cover sidecar, same-container, Kubernetes and Windows service setups.

How to configure Litestream

  • addrdisabled
  • mcp-addrdisabled
  • levels30s, 5m, 1h (L1–L3)
  • snapshot.interval24h
  • snapshot.retention24h

Litestream releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

FAQ

Why aren't my changes being replicated?

Verify Litestream and the storage instance are still running and reachable, and if using a config file, that credentials are correct and the file is being read via the -config flag.

Why do I get "Cannot lookup region"?

The region is missing or invalid in the configuration; for MinIO any region value (e.g. us-east-1) works since MinIO ignores it but still requires it.

Why do I get "The AWS Access Key Id you provided does not exist in our records"?

Litestream cannot authenticate with the store — check the access/secret keys, set an endpoint for a remote MinIO server, and unset conflicting environment variables, since env vars take precedence over config files.

More in Backup

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…