Linux script to email disk space?

software development

#1

Has anyone come up with a script to email one’s disk space used, INCLUDING space used by users’ databases. I’d like a weekly report on how much space I’m using via email, with a number similar to what shows up in the View Report screen of the Dreamhost Web Panel.

A Linux script preferred: bash, ksh, etc.

Thanks.


#2

I’ve heard it mentioned that there’s no way of accurately predicting which databases relates to which users, so unless you correlate specific databases with your users manually in your script, I understand that this is not do-able.

This said, i’ve not written a script for this, but hope my input gives you some reasonable info.

Cheers,
Karl

web design, development & seo by DigitalVibe