Add local folders or NAS folders to Nextcloud storage running in docker
on
Get link
Facebook
X
Pinterest
Email
Other Apps
nextcloud_nas_storage
Add local / NAS folders to Nextcloud storage running in docker
External Storage of type “local storage” in Nextcloud
Nextcloud supports adding multiple types of external storage for increasing the file storage capacity. However, “External Storage Support” nextcloud app should be enabled as a prerequisite.
A folder in the docker host can be mount into the nextcloud container and then this folder can be used as an External Storage of type “local storage” in the Nextcloud app
If the docker host is linux, make sure the UID and GID 33 have write permissions to the host folder. Because the nextcloud container’s www-data user always runs with UID 33 and GID 33
# Set ownership to UID 33 and GID 33sudochown -R 33:33 /path/to/host/folder
# Set proper read/write permissionssudochmod -R 750 /path/to/host/folder
The container folder can be added as an external storage in the Nextcloud UI at Administration Settings → External Storage menu as shown below.
A nextcloud container folder can also be added to External storage using the following occ commands inside the nextcloud container
The NAS folder can be mounted as a folder location in the docker host.
For example, if a NAS supports CIFS, it’s folder can be bound as a local folder (say /local_folder) by adding a CIFS bind mount in the host’s /etc/fstab file.
Since the NAS folder is available as a folder in the docker host, it can now be added as an external storage in the nextcloud just like any folder in the docker host
Manage access to External Storage
The access to External storage can be restricted to specific nextcloud user groups and users by editing the external storage in the nextcloud administration settings as shown below
View External Storage Files
Nextcloud external storage files can be seen in the Files page as shown below
Comments
Post a Comment