[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-users] Log ageing



Hi Paul and William.

Thanks for your notes!

 > man logrotate

Thanks.  I studied this a bit and I believe that I see how it is used on the
system.  From what I gather, this takes care of the *.log files just fine. 
Side note:  For a FTP user, this is no problem.  But a GUI user who does a
"download log" only gets what is there since the last time it was rotated. 
This could be zip if he tries the day after the log is rotated.  It seems that
the GUI should unzip the last rotated log and send that to him too!

Meanwhile, I see two other types of files in the .../logs directory.  

Nothing seems to delete the *.stats files (if present).  I guess that this is
no big deal since there are only a few (at most) and they aren't very large.  I
did see one which was a half-meg.  Seems like a minor waste of space to let
them sit around forever, but no big deal.

I might delete them using a slight mod to William's script:

 > #!/bin/bash
 > find /home/virusmails -type f -atime 7 -exec rm "{}" \;

My main concern is over the .../logs/year/month/day subdirectories with the
*.cache files in them.  Individually these aren't very large, but after a year
or two they can really add up!  I don't see anything which deletes these files
after some fixed period.

Am I missing something?

Thanks again for your help!

John


         % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
         %  John Souvestre     Southern Star     www.sstar.com   %
         %  johns@xxxxxxxxx    504-888-3348     New Orleans, LA  %
         % % % % % % % % % % % % % % % % % % % % % % % % % % % % %