<div dir="ltr"><div>Yep. sounds like a cron job with 'du' iterated over many, many directories and data stored in a rrdb project. <br></div>you can set directory depth and even show mtime.<br></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Thu, Aug 14, 2014 at 1:01 PM, Lightner, Jeff <span dir="ltr"><<a href="mailto:JLightner@dsservices.com" target="_blank">JLightner@dsservices.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
It isn't likely to give you what you need anyway. While you could get the current size of any file changed in the last 5 days it is quite likely that many of the files (especially logs) simply grew in that period. That is to say the space they're currently using may be more than they began using in the last 5 days unless they were also created in that time. Similarly if you did ctime instead of mtime it would show you the ones created in that period but would leave out any growth in existing files.<br>
<br>
To get "growth" you'd have to have a baseline (e.g. total sizes today) then compare to that at some future point (e.g. 5 days from now). You could create a cron job to store the information each day.<br>
<div><div class="h5"><br>
<br>
<br>
<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:ale-bounces@ale.org">ale-bounces@ale.org</a> [mailto:<a href="mailto:ale-bounces@ale.org">ale-bounces@ale.org</a>] On Behalf Of JD<br>
Sent: Thursday, August 14, 2014 11:19 AM<br>
To: Atlanta Linux Enthusiasts<br>
Subject: Re: [ale] Disk Space used in the past 5 days<br>
<br>
On 08/14/2014 10:48 AM, Chuck Payne wrote:<br>
> find . -mtime +5 -exec du -sh {} \;<br>
<br>
It seems to be asking for files OVER 5 days old. You want less than 5 days, right?<br>
<br>
find . -mtime -5 -exec du -sh {} \;<br>
<br>
Also - directory changes will be included, so limiting it to files might be a good idea.<br>
<br>
<br>
find . -mtime -5 -type f -exec du -sh {} \;<br>
<br>
I'm not getting the "summary" -<br>
<br>
find . -mtime -5 -type f -print0 | du -hc --files0-from=-<br>
<br>
Is closer.<br>
_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
<br>
</div></div>Athena(r), Created for the Cause(tm)<br>
Making a Difference in the Fight Against Breast Cancer<br>
<br>
__________________________________________________________<br>
CONFIDENTIALITY NOTICE: This e-mail may contain privileged<br>
<br>
or confidential information and is for the sole use of the intended<br>
<br>
recipient(s). If you are not the intended recipient, any disclosure,<br>
<br>
copying, distribution, or use of the contents of this information<br>
<br>
is prohibited and may be unlawful. If you have received this electronic<br>
<br>
transmission in error, please reply immediately to the sender that<br>
<br>
you have received the message in error, and delete it. Thank you<br>
<div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">-- <br>James P. Kinney III<br><i><i><i><i><br></i></i></i></i>Every time you stop a school, you will have to build a jail. What you
gain at one end you lose at the other. It's like feeding a dog on his
own tail. It won't fatten the dog.<br>
- Speech 11/23/1900 Mark Twain<br><i><i><i><i><br><a href="http://heretothereideas.blogspot.com/" target="_blank">http://heretothereideas.blogspot.com/</a><br></i></i></i></i></div>
</div>