cego / zfs-cleaner Goto Github PK
View Code? Open in Web Editor NEWTool for destroying ZFS snapshots after predefined retention periods
License: MIT License
Tool for destroying ZFS snapshots after predefined retention periods
License: MIT License
After an execution a summary would be nice. something like:
$ zfs-cleaner /zfs/cleaner.conf
34 snapshots keept 1 destroyed
This should be accompanied by a quiet option like -q or --quiet
eg. if there is en error in the config file format help is still printed.
Hi
In the function processAll
, there is a loop that will result in many zfs list
one pr. plan/paths.
On a system with plenty disks, ssd cache, zil logs nvme, memory and CPU. Normal load is 4.
We have around 2000 - 3000 snapshots spread on 50 zpools. When we run zfs-cleaner it takes up to an hour to gather all information it needs before starting destroying snapshots. It might be an idea to make one list and work from there?
If a protect file is empty ( not containing a \r ) the following error is given:
failed to parse /zfs/cleaner_plans/cleaner_data_plan.conf: protected snapshot name include path
Add plancheck to readme
Add a --version option to get binary version
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.