Hi @Thad, sorry for the delay in answering…
I was referring to the rock-on submitted by @bennysp that @phillxnet linked:
The reason I was thinking this may be the best option for you is that it is the closest to the owncloud-official rock-on you are already running. As a result, there’s no absolute need to create all the shares you listed (-config, -db, -apps, -data). Indeed, the Nextcloud official only uses a single share for all that. You can thus create a single share (named nextcloud-main, for instance) and use it during the rock-on install.
For the rock-on install, you can look at the file in the Github PR linked above; for convenience, I placed a ready-to-use version of it on Github as a gist:
In case you’re unsure how to use it, @phillxnet wrote detailed instructions on how to test a rock-on that you can simply use to install it (until the PR gets merged):
Coming back to the matter of shares, I personally would create a main one (as mentioned above) and install the nextcloud-official rock-on in it. Once installed:
- go to the webUI and finish the initial setup process (mainly creating an admin account).
- Turn off the rock-on and use the “Add Storage” feature to add your share with the data you want being added to Nextcloud. (See Rockstor documentation if needed).
- Turn the rock-on back on and you should now be able to follow the instructions for mass import I linked above.
For how to do step 3, it actually depends on how your data were organized (structured, and the number of users, for instance). It actually also dictates how step 2 should be done actually, as the data structure needs to fit what Nextcloud is expecting. For instance, I would first login to Nextcloud webUI as admin, and create users for all the users you need, then log-out and log-in with each user. This will “initialize” each account (creating corresponding data folders etc…). For instance, creating a user account Testuser will create a folder /var/www/html/data/Testuser
that contains:
www-data@d1925d28cc52:~/html/data/Testuser$ ls -lhtr
total 0
drwxr-xr-x 1 www-data www-data 0 Oct 5 08:19 cache
drwxr-xr-x 1 root root 50 Oct 5 08:41 files
This files subfolder is where all the files for this user need to be. This is thus the path I would first try to add as a storage (step 2 above).
Correct. Adding your previous data share as in step 2 above will be enough. Note, however, that the tutorial linked relates to a “full” installation and not one in a docker container. In our case, you will need to first “enter” the container before running the commands. In addition, you will need to do so under the www-data
user. This would thus translate into:
docker exec -it -u www-data nextcloud-official bash
You will then enter the bash shell under the nextcloud-official container. (to exit it, you can press ctrl
+ D
). You can then run the command to scan files:
php console.php files:scan --all
Again, note that these notes would need to be adapted based on your situation (# of users, data architecture, etc…) so don’t hesitate to ask if you have any question.
Hope this helps!