Cron.php added task

I am wondering if it’s possible to add a task to the cron.php in nextcloud that will automatically copy files from one set of folders in nextcloud to another?

If so where in the cron.php file would I add that?

Why should there be a requirement to use the internal Nextcloud cron.php, which primary purpose is to execute internal tasks? I would recommend to set-up a normal cron job to execute copy commands.

Another way to solve your problem might be to install and use the the workflow_scripts app. The search function of this forum should lea you to some use-cases if this app :wink: