-
Notifications
You must be signed in to change notification settings - Fork 40
docs(guides): add directory replication guide #173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Hi @corylanou, any particular reason that this doesn't auto discover new sqlite databases created after litestream has started? |
|
Great question! The current implementation (from PR #738) was designed as a simpler first step that scans directories at startup only. Dynamic discovery is already implemented in PR #827, which adds a dbs:
- dir: /var/lib/app/tenants
pattern: "*.db"
recursive: true
watch: true # enables real-time discovery
replica:
type: s3
bucket: my-backup-bucketOnce PR #827 is merged, the docs will be updated to include the dynamic watching capability. |
|
This is just incredible. Thanks for the explanation. I appreciate it. |
Add documentation for the directory replication feature that allows replicating entire directories of SQLite databases for multi-tenant applications. - Add new guide at content/guides/directory/ - Add directory configuration section to config reference - Add Configuration guides section to guides index Closes #95
79981ce to
e7e78ab
Compare
- Fix YAML field name: `directory` → `dir` (matches Litestream config)
- Add `{{< since version="0.5.0" >}}` annotation to directory guide
- Document `watch` option with link to Directory Watcher guide
- Fix `pattern` as required field (not optional with default)
- Update "Discovery timing" to reference watch option
- Add "Next steps" section linking to Directory Watcher
- Add cross-reference from Directory Watcher to Directory guide
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Documentation Review & Testing ReportThis PR was reviewed using automated testing against the Litestream binary to verify all configuration examples and commands work correctly. Testing Environment
Critical Issue Found & FixedIssue: All YAML config examples used 🔴 Test with original
|
Summary
content/guides/directory/Documents the directory replication feature from benbjohnson/litestream#738, enabling replication of entire directories of SQLite databases for multi-tenant applications.
Closes #95
Test plan