External storage as home for NC files

Hello!

I have a webDAV connected as external storage to my NC.
The question I have is, if and how it’s possible to bring external storage as home-storage for files.
Best for all my users in NC.

many thanks!

cheers, bdream

I think WebDAV is not the right storage for Nextcloud primary storage and also not possible (e.g. user rights). But perhaps you can configure NFS .

If you only have WebDAV you can set quota on your nextcloud and use WebDAV in Nextcloud as External Storage as you descripted.

@devnull thanks for your message!
I think this will not work for me. I have to go with webDAV.
I can’t get NFS working to connect both providers and the installation is already working.

Point I need to do is increasing the storage. The only way to do is with external storage.

cheers, bdream

Ok. If you have access to the server (ssh) perhaps “mount.davfs” (packages davfs2) works for you.

sudo mount.davfs https://example.org/webdav /mnt/

I think it is not a good idea. :hot_face:
/mnt is your data-dir in nextcloud. Change e.g. the path or config/config.php .
You must set the mount that www-data:www-data (your nextcloud) is owner.
Post if it works.

that is a thing I have to ask the provider for, if it’s possible. That will take time…

Let me come back in a few days if it’s possible.

Many thanks for this idea! May you explain a bit more, why it is not a good idea please?

cheers, bdream

I think the protocol WebDAV is not so good and robust like SMB/CIFS, NFS, SFTP (sshfs) for network connections. You can see it if you use federation between two nextcloud accounts.

Perhaps you can also use sshfs (packages sshfs) instead of NFS.

sshfs -o <rights> user@xxx.xxx.xxx.xxx:/path/to/remote-directory /mnt/

(use ssh-keys and pehaps automatic mount in /etc/fstab)

/mnt is your data-dir in nextcloud. Change e.g. the path or config/config.php .
You must set the mount that www-data:www-data (your nextcloud) is owner.
I think sshfs is a better idea than WebDAV but worse than NFS.