Cronjob - Can anyone explain these settings Pls.?

Hi
I have installed the OVA from Turnkeys
(great - version 21.0.1 & works nearly out of the Box)

In:
crontab -u www-data -e

I found this:
"/tmp/crontab.0xw3CT/crontab" 23L, 889C

What does that mean?

What to put there that the job runs every 5 minutes?

*/5 * * * * php -f /var/www/nextcloud/cron.php

Is this correct?

https://crontab.guru/every-5-minutes

The cron syntax is unrelated to Nextcloud and a quick Google search for cron job every 5 minutes would have done the job.

Many THX!

Do you have also an answer for this?

But related on the serve it runs on & how its configured?
What do you think?

*/5 * * * * means “every 5 minutes”, in any crontab, on any server in the world.

But it is important, that you add the entry to the crontab of the user that is supposed to run the command. (In this case it has to be the user www-data). And of course the command to be executed, has to be correct (in this case php -f /var/www/nextcloud/cron.php)

This site may help: https://crontab.guru/

or this one: https://ostechnix.com/a-beginners-guide-to-cron-jobs/

maybe both :slight_smile: