importing awstats data
I moved a website to an ispconfig3 based setup.
Now I hoped to just copy over the old awstats data files and re-genarate the static pages to be included by /stats/index.php
But is keeps only showing the current month in the "Jump to previous stats:" selection.
This is what I did to regenerate the January stats of this year:
awstats_buildstaticpages.pl -year=2012 -month=01 -config=website.ext -awstatsprog=/var/www/awstats/awstats.pl -builddate=2012-01 -dir=/var/www/website.ext/web/stats/
It created the static files of January with an index at
But /stats/index.php still only shows me the option to select 2012-08 (this month).
What am I missing? Do I need to rename the output files?
Thank you in advance.
Eventually I found the stats of the previous months should each reside in a separate folder.
For example, the index of July should be:
so to import the previous months, based on existing awstats data, I did:
for month in 1 2 3 4 5 6 7; do
mkdir -p /var/www/$site/web/stats/$year-$month
awstats_buildstaticpages.pl -year=$year -month=$month -config=$site -awstatsprog=/var/www/awstats/awstats.pl -dir=/var/www/$site/web/stats/$year-$month
cp /var/www/$site/web/stats/$year-$month/awstats.$site.html /var/www/$site/web/stats/$year-$month/awsindex.html
|All times are GMT +2. The time now is 07:24.|
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.