We have set it up a cron job. Source: https://matomo.org/faq/on-premise/how-to-set-up-auto-archiving-of-your-reports/
MAILTO="youremail@example.com"
5 * * * * www-data /usr/bin/php /path/to/matomo/console core:archive --url=http://example.org/matomo/ > /home/example/matomo-archive.log
Why is still showing a warning it is not set?