Help fixing error

I recently installed nextcloud on my VPS, im having issues uploading files etc, and when i tried to make a system report i got : “Generating system report failed. Could not create file “2020-12-18.md” to store generated report.”

How do i fix this?

And how do i setup automatic backups from my pc (if possible)

Kian

Seams to me the www-data user and group don’t have theire needed permissions on the data and ore nc folder(s).
/var/www/nextcloud/
/YOURNCSOURCEDIRECTORY