[ale] Disk Space used in the past 5 days

Jim Kinney jim.kinney at gmail.com
Thu Aug 14 14:56:55 EDT 2014


for i in <full path to folders to process>; do du ${i} >>
<storage>/filesizes-$(date +%Y%m%d) ; done

run daily:
for i in 1 2 3 4 5; do
 diff <storage>/filesizes_$(date -d "today" +%Y%m%d)
<storage>/filesizes_$(date -d "${i} days ago" +%Y%m%d) >
<storage>/${i}_day_changes
done


On Thu, Aug 14, 2014 at 2:35 PM, Paul Cartwright <pbcartwright at gmail.com>
wrote:

> On 08/14/2014 02:28 PM, Chuck Payne wrote:
> > David,
> >
> > Try to see how much space I use in 5 days, so I can plug into a spread
> > sheet to figure up the cost, they give different rates for how much we
> > store.
> >
> > Thanks I will try that.
> >
> > By way, we need to do lunch.
> if you do a :
> #  du -S|tail -1
>
> it will give you the total ( of that folder... or specify a folder)
>
> do that every day in a cron and do 'date'>> to that file in the cron job..
>
> --
> Paul Cartwright
> Registered Linux User #367800 and new counter #561587
>
> _______________________________________________
> 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/58fa7d63/attachment.html>


More information about the Ale mailing list