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.