Nextcloud version: 19.0.3
Operating system and version: Ubuntu 16.04.7
Apache or nginx version: Apache 2.4.46
PHP version: 7.4.10
The issue you are facing:
I am trying to move some files from a groupfolder in nextcloud to a NFS share and empty the __groupfolder every night.
Steps:
NFS is mounted and writable
Script copies files to NFS share
Script Delete all files in __groupfolder
Script execute occ command to scan specific __groupfolder directory
My problem is that occ file:scan is not working when i try to scan a specific __groupfolder directory βocc files:scan --path=β/var/www/ncdata/__groupfolders/2" occ throws me a unknow user error.
When using β/var/www/nextcloud/occ files:scan --allβ the __groupfolder is scanned but also all the other directories and i want to avoid that.
/var/www/nextcloud/* user and group is = www-data
/var/www/ncdata/* user and group is = www-data