<div dir="ltr">Maybe this will help. I have 14TB in a directory. We are looking at getting Storage offsite, we working to setting up a DR site. Because of the cost so storage offsite, I was asked to see how much storage we use 1 day and 5 days so that I can get the cost. <div>
<br></div><div>That why I am trying get how much data we use in 5 Days, that 14TB is about year worth. </div><div><br></div><div>I was hoping there was an easy way, I guess I need to write a script that tell what directory and files where write in the pass file days and then add them up on a calculator. </div>
<div><br></div><div>I had figure some other sys. admin face this task. </div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Aug 14, 2014 at 1:54 PM, Chuck Payne <span dir="ltr"><<a href="mailto:terrorpup@gmail.com" target="_blank">terrorpup@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">That great guys to say I need a cronjob, but my main issue how do I get data I need. I am stuck on this and I am not getting the feed back from du like I want. </div>
<div class="gmail_extra"><div><div class="h5"><br><br><div class="gmail_quote">
On Thu, Aug 14, 2014 at 1:11 PM, Jim Kinney <span dir="ltr"><<a href="mailto:jim.kinney@gmail.com" target="_blank">jim.kinney@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Yep. sounds like a cron job with 'du' iterated over many, many directories<br>
and data stored in a rrdb project.<br>
you can set directory depth and even show mtime.<br>
<br>
<br>
On Thu, Aug 14, 2014 at 1:01 PM, Lightner, Jeff <<a href="mailto:JLightner@dsservices.com" target="_blank">JLightner@dsservices.com</a>><br>
wrote:<br>
<div><div><br>
> It isn't likely to give you what you need anyway. While you could get<br>
> the current size of any file changed in the last 5 days it is quite likely<br>
> that many of the files (especially logs) simply grew in that period. That<br>
> is to say the space they're currently using may be more than they began<br>
> using in the last 5 days unless they were also created in that time.<br>
> Similarly if you did ctime instead of mtime it would show you the ones<br>
> 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)<br>
> then compare to that at some future point (e.g. 5 days from now). You<br>
> could create a cron job to store the information each day.<br>
><br>
><br>
><br>
><br>
><br>
> -----Original Message-----<br>
> From: <a href="mailto:ale-bounces@ale.org" target="_blank">ale-bounces@ale.org</a> [mailto:<a href="mailto:ale-bounces@ale.org" target="_blank">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<br>
> days, right?<br>
><br>
> find . -mtime -5 -exec du -sh {} \;<br>
><br>
> Also - directory changes will be included, so limiting it to files might<br>
> 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" target="_blank">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>
> 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>
><br>
> _______________________________________________<br>
> Ale mailing list<br>
> <a href="mailto:Ale@ale.org" target="_blank">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>
<br>
<br>
<br>
</div></div>--<br>
--<br>
James P. Kinney III<br>
<br>
Every time you stop a school, you will have to build a jail. What you gain<br>
at one end you lose at the other. It's like feeding a dog on his own tail.<br>
It won't fatten the dog.<br>
- Speech 11/23/1900 Mark Twain<br>
<br>
<br>
*<a href="http://heretothereideas.blogspot.com/" target="_blank">http://heretothereideas.blogspot.com/</a><br>
<<a href="http://heretothereideas.blogspot.com/" target="_blank">http://heretothereideas.blogspot.com/</a>>*<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://mail.ale.org/pipermail/ale/attachments/20140814/90f4acbd/attachment.html" target="_blank">http://mail.ale.org/pipermail/ale/attachments/20140814/90f4acbd/attachment.html</a>><br>
<div><div>_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org" target="_blank">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"><div><br></div></div></div><div class="">-- <br><div dir="ltr">Terror PUP a.k.a<br>Chuck "PUP" Payne<br> <br><a href="tel:%28678%29%20636-9678" value="+16786369678" target="_blank">(678) 636-9678</a><br>
-----------------------------------------<br>Discover it! Enjoy it! Share it! openSUSE Linux.<br>
-----------------------------------------<br>openSUSE -- Terrorpup<br>openSUSE Ambassador/openSUSE Member<br>Community Manager -- Southeast Linux Foundation (SELF)<br>skype,twiiter,identica,friendfeed -- terrorpup<br>freenode(irc) --terrorpup/lupinstein<br>
Register Linux Userid: 155363<br> <br>Have you tried SUSE Studio? Need to create a Live CD, an app you want to package and distribute , or create your own linux distro. Give SUSE Studio a try.<br>See you at Southeast Linux Fest, June 19-21, 2015 in Charlotte, NC. <br>
</div>
</div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Terror PUP a.k.a<br>Chuck "PUP" Payne<br> <br>(678) 636-9678<br>-----------------------------------------<br>Discover it! Enjoy it! Share it! openSUSE Linux.<br>
-----------------------------------------<br>openSUSE -- Terrorpup<br>openSUSE Ambassador/openSUSE Member<br>Community Manager -- Southeast Linux Foundation (SELF)<br>skype,twiiter,identica,friendfeed -- terrorpup<br>freenode(irc) --terrorpup/lupinstein<br>
Register Linux Userid: 155363<br> <br>Have you tried SUSE Studio? Need to create a Live CD, an app you want to package and distribute , or create your own linux distro. Give SUSE Studio a try.<br>See you at Southeast Linux Fest, June 19-21, 2015 in Charlotte, NC. <br>
</div>
</div>