Set up auto archive crontab on Azure Bitnami installation

I’m having a hard time getting auto archiving to work.

I’m using this Bitnami installation: Matomo Cloud Hosting, Deploy Matomo

I’m trying to run the archiving command but every time I run it, there’s no output. This is the command I’m running.

sudo su tb-matomo-admin -s /bin/bash -c "/opt/bitnami/php/bin/php /opt/bitnami/apps/matomo/htdocs/core core:archive --url=https://mywebsite.com"

‘/opt/bitnami/php/bin/php’ is the output of ‘which php’

‘/opt/bitnami/apps/matomo/htdocs/core’ is the directory where the ‘Console.php’ file exists.

As stated, this command gives no output after running. I’m also curious where I should actually save my file so that it get’s executed properly? It seems the Bitnami file structure is throwing me for a loop.

Hi,

You could also try running /opt/bitnami/php/bin/php /opt/bitnami/apps/matomo/htdocs/core core:archive --url=https://mywebsite.com directly by cron as the webservers user.

I tried running just /opt/bitnami/php/bin/php /opt/bitnami/apps/matomo/htdocs/core core:archive --url=https://mywebsite.com in a command window while logged in but nothing happened.