Deleting Snapshots older than 2 weeks across multiple pools

GJSchaller

Contributor
Joined
Feb 10, 2021
Messages
100
My NAS is currently set up to take daily snapshots of my main pool ("data"), and set to keep them for 2 weeks. I also have a daily replication task to back up the data, using that snapshot, to an external drive (which is its own pool).

This morning, I looked at my snapshots in the UI, and saw many old snapshots, across multiple pools - the main pool, the external drive, and some others as well.

Is there a way to delete all backups older than X time (such as 2 weeks) across all pools?

I did search and find some older threads on this, but nothing that will do it across multiple pools.

I also found https://github.com/bahamas10/zfs-prune-snapshots but I am not sure how to implement this on TrueNAS. Is this something that would be used under TrueNAS?

Thank you!
 
Top