Mounting a WebDav storage on Linux
In this example we will mount WebDav storage based on Centos 7.
We are using an OpenVZ container and first we will enable fuse on node.
If you are not using OpenVZ VPS you can skip this step.
modprobe fuse
Enable fuse for the VPS:
vzctl set 103 --devnodes fuse:rw --save
Restart the OpenVZ container:
vzctl restart 103
Now inside of the container:
yum install epel-release yum install davfs2
Create a directory for mount:
mkdir /home/storage
Now we can actually mount the remote storage:
mount.davfs https://domain.com/owncloud/remote.php/dav/files /home/storage
It is possible to store username and password in the davfs config file /etc/davfs2/secrets:
https://domain.com/owncloud/remote.php/dav/files username password