Thanks Waintman,
 
Should have done that myself....
 
anyways, just for archiving purposes, the following command did the trick
for me :
 
find . -type d -mtime +2 -exec rm -R {} \;
(delete all files + dir older then 2 days)
 
regards
Wiljoh
 
 
 
-----Oorspronkelijk bericht-----
Van: Waitman C. Gobble, II [mailto:waitman@emkdesign.com]
Verzonden: Tuesday, July 16, 2002 8:21 AM
Aan: squid-users@squid-cache.org
Onderwerp: Re: [squid-users] SARG created files auto delete ?
howdy
 
don't know off the top of my head but i know where i would start
 
http://groups.google.com/groups?hl=en
<http://groups.google.com/groups?hl=en&lr=&ie=ISO-8859-1&q=delete+files+by+d
ate+linux> &lr=&ie=ISO-8859-1&q=delete+files+by+date+linux
 
best
 
waitman gobble
emk design
http://emkdesign.com <http://emkdesign.com> 
+1.7145222528
 
----- Original Message ----- 
From: Beukers, W.J. <mailto:WBeukers@vanleeuwen.nl>  
To: squid-users@squid-cache.org <mailto:squid-users@squid-cache.org>  
Cc: 'orso@onda.com.br' <mailto:'orso@onda.com.br'>  
Sent: Monday, July 15, 2002 11:07 PM
Subject: [squid-users] SARG created files auto delete ?
 
Hi,
 
I am using SARG <http://web.onda.com.br/orso/index.html>  for nice HTML
views of the Squid Logs. All fine, but these take a lot of space and after a
couple of weeks, my disk get's full. 
I am looking for a way (command) that deletes all SARG-log older then, lets
say, 5 days or something. 
 
The directory's look like this :
 
$ ls -lia
total 1306
26996 drwxr-xr-x  12  root  daemon        512     Jul 15 23:55     .
26883 drwxr-xr-x   4   root  daemon        512     Jun  6 10:53     ..
40328 drwxr-xr-x   2   root  daemon      1024     Jul  6 23:55
06Jul2002-06Jul2002
40330 drwxr-xr-x   2   root  daemon      5632     Jul  7 23:55
07Jul2002-07Jul2002
40343 drwxr-xr-x   2   root  daemon  119808     Jul  8 23:57
08Jul2002-08Jul2002
44161 drwxr-xr-x   2   root  daemon  105984     Jul  9 23:56
09Jul2002-09Jul2002
 1922 drwxr-xr-x   2   root  daemon  106496     Jul 10 23:57
10Jul2002-10Jul2002
26997 drwxr-xr-x   2   root  daemon   81408     Jul 11 23:56
11Jul2002-11Jul2002
30825 drwxr-xr-x   2   root  daemon   85504     Jul 12 23:56
12Jul2002-12Jul2002
34566 drwxr-xr-x   2   root  daemon      512     Jul 13 23:55
13Jul2002-13Jul2002
34568 drwxr-xr-x   2  root  daemon     1536     Jul 14 23:55
14Jul2002-14Jul2002
34574 drwxr-xr-x   2  root  daemon  108032     Jul 15 23:57
15Jul2002-15Jul2002
27035 -rw-r--r--   1     root  daemon     4748     Jul 15 23:57
index.html
So, I want do delete all dirs from before 10Jul2002....anyone knows a rm -R
command with current-date -5 > older then delete kinda thing ?
 
regards
Wiljoh
 
PS. I understand this is not really a Squid question, but as far as i know,
there is no SARG mailinggroup....
 
 
Received on Tue Jul 16 2002 - 03:46:45 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:09:16 MST