[Ma-linux] [Novalug] Cleaning up /var
John Holland
jbholland at gmail.com
Sat Nov 29 18:06:27 EST 2008
2008/11/28 Kevin Dwyer <kevin at pheared.net>
> On Fri, Nov 28, 2008 at 2:24 PM, Przemek Klosowski <
> przemek at jazz.ncnr.nist.gov> wrote:
>
>> There's a neat program 'baobab' that displays the filesystem graphically
>> and helps to figure out where is your disk usage going. Think of it
>> as a 'du' graphical front end.
>>
>
> I like filelight for the graphical representation. du -s * | sort -n
> otherwise.
>
> -kpd
>
>
> _______________________________________________
> Ma-linux mailing list
> Ma-linux at calypso.tux.org
> http://calypso.tux.org/cgi-bin/mailman/listinfo/ma-linux
>
I use this one-liner script run in cron once a day to keep a backup archive
from getting to big. It rm's files > 49 days old. If the amount of data per
day
is stable this can keep as much around as you choose by adjusting the 49
value.
(the dir in this case being /media/usbdisk/bkp)
---------------------------------------------------------------------------------
#!/bin/sh
find /media/usbdisk/bkp -mtime +49 -exec rm -r {} \
John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://calypso.tux.org/pipermail/ma-linux/attachments/20081129/c912bd4e/attachment-0001.html
More information about the Ma-linux
mailing list