Bingo.
It's not intuitive, is it? I agree. I don't like the way TrueNAS uses Zettarepl to handle snapshots and pruning. There is no "database" or "table" that keeps track of snapshots, independent of their names. Zettarepl parses the
names themselves. So if the snapshot's parseable
name does not align with an existing task, there is nothing to prune it.
Likewise, the opposite is true. You can
accidentally have old, archival snapshots destroyed without even knowing it, because of the same quirk about how Zettarepl works!
See here for more information:
Hi! How would I best go about creating a schedule that creates snapshots of a dataset like this: 48 hourly 31 daily 48 monthly 12 yearly I think that I should create a separate schedule for each "frequency", but is there a better way?
www.truenas.com