Snapshot auto delete based on snapshot count not time
Description
So something that bugs me with snapshots is that if I set them to delete after 2 weeks... and I do no changes. Eventually, I will have no snapshot history.
It would be great if there was a way to configure something like.. Snapshot lifetime 14 days at 1h per day = 336 snapshots. = this will NOT auto-delete them after 14 days. Simply it will create a queue of 336 slots.
What would happen then is if a new snapshot gets added, the last snapshot gets deleted on the list. This way I would always have 336 snapshots per my share, but they could spam years instead of weeks given how often the volume is used.
Activity
Show:
Kris Moore
July 18, 2024 at 5:57 PM
Thank you for submitting this feature request! To better accommodate and gauge community interest for future versions of TrueNAS we have moved the submission process to our TrueNAS Community Forums. If this feature is still important and relevant for consideration, please refer to the links below on how to submit it for community voting and TrueNAS roadmap review.
So something that bugs me with snapshots is that if I set them to delete after 2 weeks... and I do no changes. Eventually, I will have no snapshot history.
It would be great if there was a way to configure something like..
Snapshot lifetime 14 days at 1h per day = 336 snapshots. = this will NOT auto-delete them after 14 days. Simply it will create a queue of 336 slots.
What would happen then is if a new snapshot gets added, the last snapshot gets deleted on the list.
This way I would always have 336 snapshots per my share, but they could spam years instead of weeks given how often the volume is used.