Koozali.org: home of the SME Server

How to delete SARG cache?

Offline riccge

  • **
  • 36
  • +0/-0
How to delete SARG cache?
« 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!
......

ztasevski

How to delete SARG cache?
« Reply #1 on: May 05, 2004, 09:08:28 AM »
hi,

you can try:

rm -rf var/www/html/squid/

Offline byte

  • *
  • 2,183
  • +2/-0
How to delete SARG cache?
« Reply #2 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
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

loveless

sarg prune
« Reply #3 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