Piwik archiving through cron


#1

Hi!

Does a website have to be running when archiving websites through cron?
Example, does this talk to the website running piwik at all, or does it just need php running through the terminal:


[$] php /path/to/console core:archive --url=http://www.example.com/ > /home/example/piwik-archive.log

Just wondering if restarting the webserver will have any effect on piwik archiving in the terminal/cron.

Thanks!


(Matthieu Aubry) #2

Hi there,

the core:archive script does not talk to the website, it simply processes all the data in the piwik mysql DB and creates reports. it also executes scheduled tasks which may connect some servers, for example to send scheduled reports by email or download the latest version of the referrer spam list.