[ale] Disk Space used in the past 5 days

Chuck Payne terrorpup at gmail.com
Thu Aug 14 14:05:55 EDT 2014


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.

That why I am trying get how much data we use in 5 Days, that 14TB is about
year worth.

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.

I had figure some other sys. admin face this task.




On Thu, Aug 14, 2014 at 1:54 PM, Chuck Payne <terrorpup at gmail.com> wrote:

> 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.
>
>
> On Thu, Aug 14, 2014 at 1:11 PM, Jim Kinney <jim.kinney at gmail.com> wrote:
>
>> Yep. sounds like a cron job with 'du' iterated over many, many directories
>> and data stored in a rrdb project.
>> you can set directory depth and even show mtime.
>>
>>
>> On Thu, Aug 14, 2014 at 1:01 PM, Lightner, Jeff <JLightner at dsservices.com
>> >
>> wrote:
>>
>> > 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.
>> >
>> > 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.
>> >
>> >
>> >
>> >
>> >
>> > -----Original Message-----
>> > From: ale-bounces at ale.org [mailto:ale-bounces at ale.org] On Behalf Of JD
>> > Sent: Thursday, August 14, 2014 11:19 AM
>> > To: Atlanta Linux Enthusiasts
>> > Subject: Re: [ale] Disk Space used in the past 5 days
>> >
>> > On 08/14/2014 10:48 AM, Chuck Payne wrote:
>> > > find . -mtime +5 -exec du -sh {} \;
>> >
>> > It seems to be asking for files OVER 5 days old. You want less than 5
>> > days, right?
>> >
>> > find . -mtime -5 -exec du -sh {} \;
>> >
>> > Also - directory changes will be included, so limiting it to files might
>> > be a good idea.
>> >
>> >
>> > find . -mtime -5 -type f -exec du -sh {} \;
>> >
>> > I'm not getting the "summary" -
>> >
>> > find . -mtime -5 -type f  -print0 |  du -hc --files0-from=-
>> >
>> > Is closer.
>> > _______________________________________________
>> > Ale mailing list
>> > Ale at ale.org
>> > http://mail.ale.org/mailman/listinfo/ale
>> > See JOBS, ANNOUNCE and SCHOOLS lists at
>> > http://mail.ale.org/mailman/listinfo
>> >
>> > Athena(r), Created for the Cause(tm)
>> > Making a Difference in the Fight Against Breast Cancer
>> >
>> > __________________________________________________________
>> > CONFIDENTIALITY NOTICE: This e-mail may contain privileged
>> >
>> > or confidential information and is for the sole use of the intended
>> >
>> > recipient(s). If you are not the intended recipient, any disclosure,
>> >
>> > copying, distribution, or use of the contents of this information
>> >
>> > is prohibited and may be unlawful. If you have received this electronic
>> >
>> > transmission in error, please reply immediately to the sender that
>> >
>> > you have received the message in error, and delete it. Thank you
>> >
>> > _______________________________________________
>> > Ale mailing list
>> > Ale at ale.org
>> > http://mail.ale.org/mailman/listinfo/ale
>> > See JOBS, ANNOUNCE and SCHOOLS lists at
>> > http://mail.ale.org/mailman/listinfo
>> >
>>
>>
>>
>> --
>> --
>> James P. Kinney III
>>
>> 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.
>> - Speech 11/23/1900 Mark Twain
>>
>>
>> *http://heretothereideas.blogspot.com/
>> <http://heretothereideas.blogspot.com/>*
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL: <
>> http://mail.ale.org/pipermail/ale/attachments/20140814/90f4acbd/attachment.html
>> >
>> _______________________________________________
>> Ale mailing list
>> Ale at ale.org
>> http://mail.ale.org/mailman/listinfo/ale
>> See JOBS, ANNOUNCE and SCHOOLS lists at
>> http://mail.ale.org/mailman/listinfo
>>
>
>
>
> --
> Terror PUP a.k.a
> Chuck "PUP" Payne
>
> (678) 636-9678
> -----------------------------------------
> Discover it! Enjoy it! Share it! openSUSE Linux.
> -----------------------------------------
> openSUSE -- Terrorpup
> openSUSE Ambassador/openSUSE Member
> Community Manager -- Southeast Linux Foundation (SELF)
> skype,twiiter,identica,friendfeed -- terrorpup
> freenode(irc) --terrorpup/lupinstein
> Register Linux Userid: 155363
>
> 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.
> See you at Southeast Linux Fest, June 19-21, 2015 in Charlotte, NC.
>



-- 
Terror PUP a.k.a
Chuck "PUP" Payne

(678) 636-9678
-----------------------------------------
Discover it! Enjoy it! Share it! openSUSE Linux.
-----------------------------------------
openSUSE -- Terrorpup
openSUSE Ambassador/openSUSE Member
Community Manager -- Southeast Linux Foundation (SELF)
skype,twiiter,identica,friendfeed -- terrorpup
freenode(irc) --terrorpup/lupinstein
Register Linux Userid: 155363

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.
See you at Southeast Linux Fest, June 19-21, 2015 in Charlotte, NC.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ale.org/pipermail/ale/attachments/20140814/3279bad1/attachment.html>


More information about the Ale mailing list