Background: My Nextcloud installation is in docker on a Mac. I know nothing about cron.
I can manually open Terminal and execute this to update my external storage files: docker exec --user www-data -it nextcloud-aio-nextcloud php occ files:scan --all
But for the life of me, I cannot figure out how to schedule it to run periodically. I have seen posts mentioning cron and launchd, but I can’t find anything that explains it step by step. Can someone please explain it to me like I’m an idiot?
step by step tutorials are waste of time - technology changes fast and it is very hard to keep such tutorial up to date - but once you learn what your are doing adding a cron job is peace of cake..
PS: if you need periodic files:scan your business process is broken and you should look how to fix it.
Thanks. But the Nextcloud documentation explicitly suggests setting up a cron job to run files:scan when you are using external storage, which is exactly the use case I described in my original post. So perhaps my business process is not broken.