How to upload a file to Nextcloud from Cron without CLI installed?

I’m looking for a way to inject/upload some files via CronJob to a Nextcloud share without installing and completely setting up the Nextcloud CLI. The process should be append only.

The job itself runs every few hours and creates a file of maybe 1MB. I’d like to put this file direct to the cloud for distribution it to other of coworkers.

I was playing around with curl and PUT and using a link share for the purpose. Will this work? Does anyone of you might have a pre-build script for such a case?

Cheers and thanks,

Hi @frlan

Maybe you could have a look at this:

or this: GitHub - OliverHi/autouploader: Automatically upload new files in a local folder to (your) cloud

1 Like