Add files directly via share

Hello,

I need to migrate about 2TB of data into NX.
Is it possible to just copy all the files into the data folder and have NC pick them up?

Please advise & thank you!

1 Like

Yes
Check the documentation for executing the maintenance
occ file:scan --all

https://docs.nextcloud.org/server/9.0/admin_manual/configuration_server/occ_command.html#file-operations-label

Updated by @nickvergessen to point to our docs

3 Likes

THANK YOU very much for your help!

Just a reply for posterity - don’t forget to correct the linux permissions for files copied directly into the data folder

1 Like

don’t forget to correct the linux permissions for files copied directly into the data folder

Yes. I would recommend just writing a bash script that does the occ rescan and sets the file permissions for the data directory (or at least the directory of the individual user being scanned) and then run the script in a cron job.