Hi, I’m new to Nextcloud and linux, I want to move some files to the NC data directory and I’m trying to run a scan:files --all but I can’t get it to work.
My NC run under docker on a Qnap NAS, and this is the full path:
Something like docker exec -it nextcloud /bin/bash
In this case you can define the full path of php. /var/www/where/is/php /share/CACHEDEV1_DATA/Container/container-station-data/lib/docker/volumes/Nextcloud/_data/www/nextcloud/occ files:scan --all
you have to use php inside of your container… official docker image finds php without full path. I use to run commands inside of the container as following:
fwiw, I’ve had to write full php path a number of times inside Nextcloud docker containers, so ymmv. Either way, will work with small experimentation.
Think of it as main system → Docker → Nextcloud
To access Nextcloud from the command line you have to