Hi, I’ve installed Nextcloud via snap on VM Ubuntu 18 server. I’m trying to get a cron job to backup the data folder from another server since nextcloud is in a DMZ. It keeps giving permission denied. I created a user call cronjob, added it to sudo and it still gets blocked. ONLY root can access the folder.
So my question is how do I give user cronjob access to that folder without changing permissions on that data folder? I don’t want to use root if all possible.
I’m running a rsync job from my backup server.