Hello,
When running occ commands I first cd to this directory </snap/bin>
then I run <sudo ./nextcloud.occ preview:pre-generate>
how do I write this in <sudo crontab -e> in one step? and how do I confirm it is correct
what I guessed but didn’t work
<0 3 * * * ./snap/bin/nextcloud.occ preview:pre-generate>
was trying to run it at 3am everyday.
everyone else seems to go to a directory called occ and run the commands there but I don’t have occ directory I have nextcloud.occ.