3 ms·
I had similar problem with logs retention in past and came up with shell script[1] which deletes half of least recent files if disk usage hit high water limit.
by Snawoot 3y ago
I had similar problem with logs retention in past and came up with shell script[1] which deletes half of least recent files if disk usage hit high water limit.
[1]: https://gist.github.com/Snawoot/9fdc348a8539cc74f80734180bd64290 https://gist.github.com/Snawoot/9fdc348a8539cc74f80734180bd6...