Register for the iXsystems Community to get an ad-free experience and exclusive discounts in our eBay Store.

Snapshot Culling Script Feedback

Not open for further replies.


Aug 18, 2014
I created a script to reduce hourly snapshots down to weekly ones and still have them all available to CIFS shadow copy.

It first destroys snaps that have no difference between them. It then destroys snaps by date, reducing hourly snaps to daily when older than 2 days then to weekly when older than 7 days.

Feedback is appreciated. I am new to python. Is it sound idea to be deleting snapshots in this way?

I saw fracia's ZFS Rollup script but it was over my head and I learn best when trying to make something.

Included is the script file, a config file for server url and root login information and a snapshot creating script I was using when testing.
Last edited:
Not open for further replies.