Core:archive function doesn't take --quiet

(James) #1

Hi all,

I’ve switched my cron which used to use archive.php to using the new console php script in the docroot.

One issue I’ve noted is that it doesn’t take the --quiet or -q switches. I try using the below command:

sudo -u www-data php /var/www/docroot/console --quiet core:archive --url=

But the code still prints the results. Do I still need to pipe core:archive to a random file?

(Matthieu Aubry) #2

We recommend on the user guide: How to Set up Auto-Archiving of Your Reports - Analytics Platform - Matomo

to pipe it into a log file so you can debug in case of errrors.
But in case of errors the errors are written to stderr anyway.