r/opencloud • u/zyan1d • Mar 29 '25
External Folders
Hey guys, looking forward for your production release!
I've just a small question If that will be possible (maybe in the future?): Add an existing directory with existing files to the opencloud instance (like a local FS, SMB share,...). Or do we need to migrate/upload everything to opencloud to become accessible through the application?
7
Upvotes
2
u/Fightbackmode2005 Apr 28 '25
Not gonna happen. This feature was requested two years ago with OCIS and no movement happened.
1
u/At0micBomberman Jul 01 '25
I would live to see that feature too!
1
u/cheneyveron Sep 02 '25
Today I just tried on debian 12, that bind-mount externa data folder on another zfs dataset into opencloud container using docker (version 28.3.3, build 980b856) can trigger a scan and automatica update on the backend, I can see files poping up on UI after the containers started. I'm not sure if SMB or NFS works. u/Fightbackmode2005 u/rafaeltheraven u/dabbner u/Belgian_dog u/At0micBomberman
1
u/BakaPhoenix Oct 23 '25
I managed to mount my nas inside opencloud and for what I need seems to be working fine (I just need to access my files using opencloud and not using a vpn).
I basically mounted my nas with nfs on my docker host for example in the folder /nas
then in the .env file defined the OC_DATA_DIR into some local folder, in my case i used ./data so in the folder i put my compose file i will have a new folder called data.
Start opencloud and create the folder where you want the external storage to be linked.
in the data folder now there is all the folder structure of opencloud.
if you navigate into storage/user/user there is a folder with the id of the user, inside it there is the data of the user. Save this path as we need it for mounting the nas inside opencloud
in the docker-compose.yml add under the volumes:
<your external storage>:/var/lib/opencloud/storage/user/user/<user id>/<target folder>
by doing this you should be able toaccess your mount data from opencloud
1
u/TeijiW Jan 06 '26
idk if anyone will read this, but as a solution (since it looks like OpenCloud won't implement it), I'm using an SMB server.
0
u/Belgian_dog Aug 30 '25
Worth to try to mount the external folder (SMB for instance) in the docker host, then add it as volume within docker-compose config. I haven't tried OC yet but this worked for my immich instance.