[ale] Disk Space used in the past 5 days

David Ritchie deritchie at gmail.com
Thu Aug 14 14:23:07 EDT 2014


Are you trying to fix this (find out what is filling up the file system) or
simply tracking usage?

for finding big files, I use

   cd <mountpoint>;  find . -xdev -size +1000000c -exec ls -l {} \; | sort
-n -k 5

Change the size to suit your own preferences and add -mtime to taste.

-- David


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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ale.org/pipermail/ale/attachments/20140814/dedd27f3/attachment.html>


More information about the Ale mailing list