fastdomain上自定义awstats需要的log

| No Comments | No TrackBacks

$ cat getlog.sh

 

#!/bin/sh
cd /home/yimutian/logs
datestr=`date +%Y%m%d -d '1 days ago'`
filename="www.guduo.net."$datestr
Year=`date +%Y -d '0 days ago'`
Month=`date +%b -d '0 days ago'`
logfile="guduo.yimutian.net-"$Month"-"$Year".gz"
echo $logfile
/bin/gzip -dc $logfile > /home/yimutian/apache_logs/$filename

 

放入crontab,在fastdomain增量打包每天的日志后自己再备份一个给awstats用。

--EOF--

No TrackBacks

TrackBack URL: http://www.guduo.net/cgi-bin/mt/mt-tb.cgi/88

Leave a comment

Pages

May 2016

Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        

About this Entry

This page contains a single entry by 谷多 published on June 1, 2008 10:22 PM.

环保购物袋 was the previous entry in this blog.

聪明的小孩和笨小孩有什么区别呢? is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.