I need expert advice. I have setup nextcloud on my dietpi machine (raspberypi3/usb HDD). I have copied about 300GB image through linux copy command (cp) manually to the my nextcloud user folder like (/mnt/dietpi_userdata/nextcloud_data/my_user). this is the same folder in which i see nextcloud generated default folder (like template, instaupload etc.). i have change the file permission for all to www-data (0644) right. but in nextcloud app i am not able to see any file or folder. then i try to found solution on nextcloud forum. & they told that we have to do “occ files:scan all” command. i translate that command into dietpi as below. but still system is not able to find my manual added folders.
root@DietPi:~# sudo -u www-data php /var/www/nextcloud/occ files:scan all Unknown user 1 all +---------+-------+--------------+ | Folders | Files | Elapsed time | +---------+-------+--------------+ | 0 | 0 | 00:00:00 | +---------+-------+--------
I want to do this only one time as with USB-3 i download all 300gb data within few hours. if i do via ftp/webdav it may take many days. please help me to fix this situation one time. after that i will always use nextcloud webpage to sync data.
thanks
Use “–all” instead of “all”