Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started 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!
-
hi,
you can try:
rm -rf var/www/html/squid/
-
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
-
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