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

[cobalt-users] Log Clearup



I use the following on the first of each month to
clear-out all the cache and stats files from all the
sites on the server.. You can safely delete the .stats
and .cache files if you want -they'll just get
recreated the next time reports run..

rm /home/sites/site*/logs/web.cache*
rm /home/sites/site*/logs/web.stats
rm /home/sites/site*/logs/ftp.cache*
rm /home/sites/site*/logs/ftp.stats
rm /home/sites/site*/logs/mail.cache*
rm /home/sites/site*/logs/mail.stats

I also visit each sites' log folder every three months
and zero the .log files as well (as some of them grow
to be quite large).. I don't actually delete the .log
files, instead I just zero them using the following
commands:

(followed by Ctrl-D to escape)

cat > web.log
Ctrl-D 

cat > ftp.log
Ctrl-D

cat > mail.log
Ctrl-D

That will set each .log file back to zero and leave
the file intact.. The .cache and .stats files can be
deleted..  Hope that helps..

Barbara


__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com