I am setting up Nextcloud on a RaspberryPI for my family. It has an 8GB microSD card and a big external HDD attached.
What I want:
- Nextcloud has more than one user.
- There is a common directory inside the HDD that everyone can access inside Nextcloud (music, photos, movies, etc.).
- Every one has a files inside Files app stored in HDD so SD does not fill up.
- Nobody can access others’ files.
- Those files are synced on individuals’ laptop, but not the
media
directory. - If the HDD is unavailable for some reason, Nextcloud and its apps are still accessible; not the files though.
- If a new user gets onboard, he creates the account using registering app and he automagically gets his own folder created in the HDD.
I just can’t get my head around this.
What I have done so far is create a media
directory that I made accessible to anyone via External Storage app and Samba. This fulfills requirement 2. This part is easy.
For the rest I have tried:
- Put Nextcloud’s
data
folder on HDD during installation. This does not meet requirement 6.
Other ideas just do not meet all requirements:
- Create manually a directory inside the HDD on user registration and then manually mount that directory to
data/username
. I do not know if I would miss something else in this case. Anyway this does not meet requirement 7, maybe not even requirement 6 but I have not tried it yet. - Create manually a directory inside the HDD on user registration and then manually make it accesible to the user through External Storage. I think this would violate requirements 7 and maybe 5.
I mean, is not that bad to have to do some things manually, is not like there will be 10 registrations per day; I am just curious about what would be the best solution for a big setup.
So, have you tried something similar? Do you have any better idea?
Thank you very much.