irTwit
Dabbler
- Joined
- Aug 18, 2014
- Messages
- 48
I created a script to reduce the number of snapshots shown in the Window's folder "Previous Versions" tab as they get older.
The script reduces the number snapshots created by FreeNAS Periodic Snapshots Tasks. It uses two methods, first it compares snapshots two at a time deleting newer snapshots that have no difference from the older one. Second, after a user specified time it reduces the number of snapshots taken throughout a day to one per day, then after another user defined length of time reduces the number to one per week.
https://github.com/WolfBungalow/FreeNAS-Cull-Snapshots
I saw fracia's ZFS Rollup script but it was over my head and I learn best when trying to make something.
Disclaimer
I'm a noob. Use at your own risk. Feedback appreciated.
The script reduces the number snapshots created by FreeNAS Periodic Snapshots Tasks. It uses two methods, first it compares snapshots two at a time deleting newer snapshots that have no difference from the older one. Second, after a user specified time it reduces the number of snapshots taken throughout a day to one per day, then after another user defined length of time reduces the number to one per week.
https://github.com/WolfBungalow/FreeNAS-Cull-Snapshots
I saw fracia's ZFS Rollup script but it was over my head and I learn best when trying to make something.
Disclaimer
I'm a noob. Use at your own risk. Feedback appreciated.