Skip to content

Backup bucket lifecycle policy - deleting old backups? #493

Closed Answered by yawaramin
yawaramin asked this question in Q&A
Discussion options

You must be logged in to vote

Oops, I just found the answer: https://litestream.io/how-it-works/#retention

The second step is retention enforcement. This periodically runs and removes any snapshots older than the retention time as well as remove any WAL files older than the oldest snapshot. By default, this the retention time is 24 hours. Litestream will always ensure there is at least one snapshot retained.

This two-step process allows for more use cases such as snapshotting every day but retaining snapshots for a week.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by yawaramin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant