Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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/9fdc348a8539cc74f80734180bd6...



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: