Mounting a WebDav storage on Linux

From vpsget wiki
Jump to: navigation, search

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 /home/storage

It is possible to store username and password in the davfs config file /etc/davfs2/secrets: username password