Mount NextCloud "Data" to a separate dataset

iceh2o

Cadet
Joined
Dec 28, 2023
Messages
1
Hello,
I want to use Nextcloud as a remote way to access my home directory but I'm currently stuck.
I don't like the concept of external storage because you have your Home in Nextcloud and then you have to open a folder to get to your second home?
My Dataset structure looks like this:
  • Tank
    • Home
      • User1
      • User2
      • ...
    • Movies
    • ...
My plan was it to mount Home to /var/www/html/data so that i just have to create a user with the same name in Nextcloud and it will use that folder.
But in this case the container doesn't even start with following error:
spec.template.spec.containers[0].volumeMounts[10].mountPath: Invalid value: "/var/www/html/data": must be unique

Then I tried mounting it to /mnt/data and changing the home directory in the settings of the app. Same error.

After that i tried setting up nextcloud without mounting anything. After setup I set the mount and its in a boot cycle...

Setting the Host Path for Nextcloud Data Volume to a Dataset is a solution, but one that i really don't like. Its a messy solution because the dataset would also contain all the configuration and I want to seperate data and config into 2 datasets.

Help would be appreciated!
 
Top