I have set up a Nextcloud server on Ubuntu using Apache and MariaDB.
I would like to access the data files for users under /var/www/nextcloud/data/[user] via ssh to back up the data files regularly to my Truenas server. Access would be over ssh, and only read access would be required. The ssh user would be patrick, which is one of the users.
The problem is that the data files have ownership www-data (user and group). I could add patrick to the www-data group, which should solve the problem and allow read access for user patrick over ssh, but I’m afraid that I could mess something up if I do so.
Does anyone have any information or suggestions?