How to monitor which files are growing faster than other ones?

If you ever needed a tool to get to know which files are growing faster than other ones, you probably will be quite satisfied with this simple bash-script.

Simply put it to your crontab:

Resulting reports will be put to /var/spool/diskhogs/report_*. You also can generate any reports by yourself, just use sqlite:

This query will generate the report for all files in the /var/lib/libvirt/images directory for the last 10 days.

If there are any updates, you could get them from GitHub: https://gist.github.com/melnik13/7ad33c57aa33742b9854.

Happy monitoring! šŸ™‚