Occ path for rescan lokal external share

Nextcloud version: 16.0.1
Operating system and version: Ubuntu 18.4
Apache or nginx version: Apache 2.4.29
PHP version (eg, 7.1): 7.2

I have an external share mounted via nfs locally to the nextcloud Server at /mnt/Test. In Nextcloud I integrated it via external share support as a local share and made it available for user tschneemann.

Now I want to rescan all files of this folder with the occ command, but I cant find the right format. I don’t see how this external shares are mounted inside of Nextcloud. Can someone provide the right command?

This is obiously not the right command:

sudo -u www-data php /var/www/owncloud/occ files:scan --path="/tschneemann/files_external/Test"

Check this out, especially if you will have more external shares.

P.S. Pattern is user1/files/externalShareMountName, so your command will be:

sudo -u www-data php /var/www/owncloud/occ files:scan --path="tschneemann/files/externalShareMountName"

Thank you so much! That works. Also thank you for the hint with your script. This can be very helpful for me too.

Timo

1 Like