Self-host Litestream
v0.5.18Streaming replication and disaster recovery for SQLite
docker run -v /local/path/to/data:/data -v /local/path/to/litestream.yml:/etc/litestream.yml litestream/litestream replicate- Stars
- 14 619
litestream/litestreamWhat is Litestream?
Litestream provides standalone disaster recovery for SQLite databases: a background daemon incrementally streams every change to another file or to object storage, and because it interacts only through the SQLite API, the source database is never corrupted. Replica targets include Amazon S3 and S3-compatible stores such as MinIO, Google Cloud Storage, Azure Blob Storage, Backblaze B2, DigitalOcean Spaces, Alibaba OSS, Tigris, Supabase and Linode, as well as SFTP, WebDAV, NATS JetStream and local paths; whole directories and multiple databases can be managed from a single YAML config file. A restore command rebuilds a database from a replica, and fine-grained LTX restore points reach back to the last synced transaction. Extras include a Prometheus metrics endpoint (off by default), an MCP server for AI assistants, a Unix-socket control API for pausing, resuming and dynamically registering databases, an optional read-only VFS extension that opens replicas straight from object storage, and exec-based supervision of your application's own process. You can install it from prebuilt binaries, a Homebrew tap, .deb/.rpm packages, or the official Docker image; typical setups run litestream replicate under systemd, Docker, Kubernetes or as a Windows service. The 0.5.x line is actively maintained, though client-side age encryption no longer works in v0.5.x (S3 server-side SSE-C/SSE-KMS still does), and the old replicas array gave way to a single replica field.
Litestream alternatives
databasementDatabasement is a self-hosted, open-source database backup manager: register MySQL, PostgreSQL, MongoDB, Redis and more, schedule backups, and restore.Comparedatabasement with Litestream
DBackupSelf-hosted open-source backup for 10 databases and files. Supports S3, Google Drive, SFTP with AES-256-GCM encryption, incremental backups, GFS retention, OIDC SSO, 2FA.CompareDBackup with Litestream
DatabasusSelf-hosted open-source backup tool for PostgreSQL (also MySQL, MariaDB and MongoDB) with point-in-time recovery, restore verification, encrypted archives and S3 storage.CompareDatabasus with Litestream
logpasteSelf-hosted log upload service with web UI, CLI, and JavaScript support; optional S3/GCS replication via Litestream.Comparelogpaste with Litestream
gtsdbGTSDB is a self-hosted, open-source time-series database in Go using WAL-first architecture for sub-millisecond reads and 233x faster writes than InfluxDB.Comparegtsdb with Litestream
folderhostA self-hosted, open-source cloud platform offering file sharing, real-time collaboration, and user management in a ~19MB binary as a lightweight Nextcloud alternativeComparefolderhost with Litestream
automqSelf-hosted, open-source Apache Kafka fork with stateless brokers that store logs on S3 or MinIO and rebalance partitions in seconds.Compareautomq with Litestream
PeerDBSelf-hosted, open-source (AGPL-3.0) ETL tool streaming Postgres to ClickHouse and other warehouses via CDC, with a web UI and a Postgres-compatible SQL interface.ComparePeerDB with Litestream
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 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.
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
Lynavo DriveSelf-hosted, open-source iCloud/Google Photos alternative that auto-syncs photos from mobile to desktop over LAN.
mail-archiverMail-Archiver is a web application for archiving, searching, and exporting emails from multiple accounts. Featuring folder sync, attachment support, mailbox migration and a dashboard.
nas-doctorSelf-hosted NAS monitoring with SMART health, Docker, ZFS, UPS tracking, service checks, and Prometheus metrics — runs on Unraid, TrueNAS, Synology, Proxmox, Kubernetes.
OpenSaveFree open-source tool syncing game saves peer-to-peer. Auto-finds saves for 20,000+ titles, uses self-hostable relay for internet sync, keeps snapshot history.
oxidizedOxidized is a self-hosted, open-source network device config backup tool replacing RANCID. Supports 150+ device types, REST API, web UI, and Git/file/HTTP storage.
perkeepPerkeep is an open-source, self-hosted personal storage system for keeping, syncing and sharing content, with search, a web UI, FUSE mounts and cloud blob backends.
pgbackwebSelf-hosted, open-source web interface for effortless PostgreSQL backups: scheduled jobs, local or S3 storage, PGP encryption, health checks and webhooks.
plakarSelf-hosted, open-source backup tool: encrypted, deduplicated snapshots you can browse, diff and verify, with sync to S3 or local stores.
plutonOpen-source, self-hosted backup using Restic and Rclone for encrypted incremental backups across 70+ cloud providers with web UI, 3-2-1 replication, and 2FA.
proxmox-backup-serverSelf-hosted, open-source Docker build of Proxmox Backup Server for AMD64 and ARM64, providing backup storage and management with a web UI on port 8007.
rconfigFree open-source network configuration manager for automated multi-vendor backups, versioning, and API-driven automation. Deploy via Docker or Linux.
repliqateRepliqate is a self-hosted, open-source backup tool for Docker that uses container labels for automated, versioned backups with flexible scheduling and restic storage.
0 comments