← Graph

Run Litestream as a Kamal accessory

takeaway 3 connections

For SQLite Rails apps deployed via Kamal, configure Litestream as an accessory (own life cycle, its own image, a config file pointing at an S3-compatible bucket like Cloudflare R2, default command 'replicate'). Use option user=1000 so it matches the Rails user in the Dockerfile and can share volume permissions. Restores follow: list snapshots → maintenance mode → stop Litestream → rm the SQLite files → restore → boot Kamal.

type
recommendation
takeaway Run Litestream as a Kamal accessory
about
Litestream tool
Takeaway is about configuring Litestream.
takeaway Run Litestream as a Kamal accessory
about
Kamal tool
Takeaway is about Kamal accessory mechanics.
takeaway Run Litestream as a Kamal accessory
from_talk
Demo pattern used throughout the talk.

Provenance