HiDrive secures your data in the cloud so you can easily access it from any device. Check HiDrive. In this Article we will work with HiDrive with WebDav Access, and how to Mount HiDrive under Linux Servers.
Install required software
- Install davfs2 package to mount WebDav:
For CentOS / RHEL 7, 8:
yum install -y davfs2
For Debain, Ubuntu
apt-get install -y davfs2
2. Mount WebDav using Command Line Interface
mount -t davfs -o noexec https://webdav.hidrive.ionos.com/ /mnt/HiDrive/
Please enter the username to authenticate with server https://webdav.hidrive.ionos.com/ or hit enter for none. Username: test Please enter the password to authenticate user valhein with server https://webdav.hidrive.ionos.com/ or hit enter for none. Password:
Now our HiDrive has been Successfully mounted under /mnt/HiDrive Directory
[root@localhost ~]# df -h /mnt/HiDrive Filesystem Size Used Avail Use% Mounted on https://webdav.hidrive.ionos.com/ 1.3T 763G 509G 61% /mnt/HiDrive
Mount HiDrive using fstab file
Edit your /etc/fstab file with any text editor vi, vim, nano, and create an entry to mount the file system:
https://webdav.hidrive.ionos.com/ /mnt/HiDrive davfs _netdev,auto 0 0
Instead of providing Username and Password every time, we will save username and password in /etc/davfs2/secrets file, at the end of the file, add the following line:
/mnt/HiDrive <Username> <Password>
Replace <Username> with your Username, and <Password> with your Password, without <> brackets. Finally your WebDav share has been mounted.
For Backing up your Server using HiDrive (FTP Protocol) please check Linux & Windows Articles.