Eventually I found the stats of the previous months should each reside in a separate folder.
For example, the index of July should be:
/var/www/website.ext/web/stats/2012-7/awsindex.html
so to import the previous months, based on existing awstats data, I did:
year=2012
site=website.ext
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
done
|
Recent comments
1 day 8 hours ago
1 day 8 hours ago
1 day 13 hours ago
1 day 20 hours ago
1 day 20 hours ago
1 day 22 hours ago
2 days 2 hours ago
2 days 9 hours ago
2 days 13 hours ago
2 days 14 hours ago