Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: riccge on May 05, 2004, 09:04:49 AM

Title: How to delete SARG cache?
Post by: riccge on May 05, 2004, 09:04:49 AM
Could someone explain to me how should I clean all the /var/www/html/squid/ monthly weekly daily ?
Thanks in advance!
Title: How to delete SARG cache?
Post by: ztasevski on May 05, 2004, 09:08:28 AM
hi,

you can try:

rm -rf var/www/html/squid/
Title: How to delete SARG cache?
Post by: byte on May 05, 2004, 12:21:41 PM
I wouldnt do the above rm -f as it could lead to future problems in creating logs (correct me if im wrong as i dont delete them this way)

As you know they are under /var/www/html/squid

in there ypu see daily weekly monthly, now i delete everything ABOVE the daily.... so that leaves the daily weekly .... in tact

HTH
Title: sarg prune
Post by: loveless on May 05, 2004, 07:20:10 PM
You could use this script to prune your sarg logs.  By default, it will delete all sarg logs older than 90 days.  If you put the file in /etc/cron.monthly, it will run each month and save only the last 90 days worth of data.

http://www.tech-geeks.org//contrib/mdrone/prune-SARG.tgz