-
Notifications
You must be signed in to change notification settings - Fork 16
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
Feature request: Make retention configurable #53
Comments
How do those map to configuration on the underlying Litestream utility? |
I have set this config in my config/litestream.yml file for 3 days retention with full snapshot every 12 hours. dbs:
- path: storage/${RAILS_ENV}.sqlite3
replicas:
- type: s3
region: $LITESTREAM_REPLICA_REGION
endpoint: $LITESTREAM_REPLICA_ENDPOINT
bucket: $LITESTREAM_REPLICA_BUCKET
path: app/storage/${RAILS_ENV}.sqlite3
access-key-id: $LITESTREAM_ACCESS_KEY_ID
secret-access-key: $LITESTREAM_SECRET_ACCESS_KEY
retention: 72h
snapshot-interval: 12h |
hey @alxvernier it's possible to just set those values & they get passed to Litestream without extra work? UPDATE: I tried adding the lines to my config/litestream.yml and it didn't work (Litestream stopped working altogether) |
I think they're discussed here https://litestream.io/reference/config/#:~:text=The%20default%20retention%20period%20is,and%20defaults%20to%20every%201h%20. |
@erdostom I didn't do more than inserting these options to make it work. |
Some users may want longer retention than 24h.
Suggesting two new config items:
The text was updated successfully, but these errors were encountered: