Litestream Backup Skill

Automate SQLite replication to S3-compatible storage via Litestream and Docker Compose.

Updated Dec 24, 2025
One-click install
npx skills add https://github.com/korjavin/claude-common-skills --skill litestream-backup-skill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Litestream Backup Skill
Source: https://github.com/korjavin/claude-common-skills/tree/main/skills/litestream-backup
Command: npx skills add https://github.com/korjavin/claude-common-skills --skill litestream-backup-skill

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill automates the setup of SQLite database replication to S3-compatible storage using Litestream, enabling reliable disaster recovery and offsite backups.

Core Features & Use Cases

  • Continuous replication of a SQLite database to S3-compatible storage (Cloudflare R2, AWS S3, MinIO, etc.)
  • Docker Compose integration via a Litestream sidecar that shares the database volume
  • Guided configuration for syncing intervals, snapshot intervals, and retention, plus optional auto-restore

Quick Start

Quick-start guidance: add a litestream service to your docker-compose alongside your app, configure a dynamic /tmp/litestream.yml with your database path and replica bucket, and then start the stack. Monitor the Litestream logs to verify the initialization and replication progress.

Frequently Asked Questions about Litestream Backup Skill

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate SQLite backups to S3 using Docker Compose?

To automate SQLite backups to S3, this Skill configures a Litestream sidecar container in your Docker Compose environment, sharing the database volume to continuously replicate data to an S3-compatible bucket. You add the service, define your bucket configuration, and start the stack to begin replication.

Can I replicate SQLite databases to Cloudflare R2 or MinIO?

Yes, you can replicate SQLite databases to Cloudflare R2, MinIO, and AWS S3. The Skill configures Litestream to target any S3-compatible storage provider, enabling continuous offsite backups and disaster recovery for your database across these platforms.

What is the best way to set up continuous disaster recovery for a SQLite database?

The best way to set up continuous disaster recovery for SQLite is using Litestream for WAL mode replication. This Skill automates configuring sync intervals, snapshot intervals, and retention policies, streaming database changes to S3-compatible storage to minimize data loss.

Does Litestream support auto-restore for SQLite disaster recovery?

Yes, Litestream supports an optional auto-restore flag for SQLite disaster recovery. This Skill enables this feature to automatically recover your database from the S3-compatible replica when starting the Docker Compose stack after a failure.

Why does my SQLite database need WAL mode for S3 replication?

Your SQLite database needs WAL mode for S3 replication because Litestream works by continuously streaming the Write-Ahead Log files. This Skill enables WAL mode to capture incremental database changes and asynchronously sync them to your S3-compatible bucket.