Hi @cPanelLauren,
This is a follow up from the conversation here:
I have the backup files coped over to the server, but I am not sure where the
step 1 comes into place. (for cd /home/CPUser/tmp/awstats)
and the second is just copy the domainname logs. Does that mean, just copy it anywhere?
and should I run awstats.pl on each of the log files from backup?
I apologize, I just don't want to mess up someone's stats
This is a follow up from the conversation here:
Hello,
It is possible but it's a bit of a process. Here is how we do it:
extract the old log file copy the run the stats program manually against it, then move the resultant file to the correct flle name for that month:
Code:
cd /home/cPUser/tmp/awstats
cp /home/cPUser/logs/domainname.tld.bkup-Mon-20YY.gz
gzip -d domainname.tld.bkup-Mon-20YY.gz
/usr/local/cpanel/3rdparty/bin/awstats.pl -config=/home/cPUser/tmp/awstats/awstats.domainname.tld.conf -LogFile=/home/cPUser/tmp/awstats/domainnamed.tld.bkup-Mon-20YY
mv awstatsMM20YY.domainname.tld.txt awstatsMM20YY.domainname.tld.txt.bak
mv awstatsMM20YY.txt awstatsMM20YY.domainnamed.tld.txt
chown cPUser awstatsMM20YY.domainname.tld.txt
Above: replace MON with the Month (Jan, Feb, Mar, etc...), replace cPUser with the cPanel Username, domainname.tld with the domain name, MM with the month (01,02,03, etc...) and 20YY with the year.
Thank you,
I have the backup files coped over to the server, but I am not sure where the
step 1 comes into place. (for cd /home/CPUser/tmp/awstats)
and the second is just copy the domainname logs. Does that mean, just copy it anywhere?
and should I run awstats.pl on each of the log files from backup?
I apologize, I just don't want to mess up someone's stats