Snapshot Culling Script Feedback

Status
Not open for further replies.

irTwit

Dabbler
Joined
Aug 18, 2014
Messages
48
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.

https://github.com/irTwit/freenas-snapshot_cull
 
Last edited:
Status
Not open for further replies.
Top