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

RE: [cobalt-users] Log Clearup



worked a treat!

Many thanks

Phil

** http://www.diygear.com THE Online DIY Toolstore For DIY & Business
** Infolink Electronic Systems Ltd. http://www.infolinkelectronics.co.uk
** Professional Web Design & Cobalt Hosting Solutions
** Sun Cobalt iForce Reseller - Canon Silver Reseller
** Contact: Sales@xxxxxxxxxxxxxxxxxxxxxxxxx
** Tel / Fax 0121 458 4894 (office) 0121 441 3558 (home)
 

-----Original Message-----
From: cobalt-users-admin@xxxxxxxxxxxxxxx
[mailto:cobalt-users-admin@xxxxxxxxxxxxxxx]On Behalf Of Barbara
Sent: 02 June 2003 03:13
To: Cobalt User Group
Subject: [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

_____________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
To subscribe/unsubscribe, or to SEARCH THE ARCHIVES, go to:
http://list.cobalt.com/mailman/listinfo/cobalt-users