Using WebDAV on Linux
Installing WebDAV client
Before using WebDAV support with Governance Registry, you need to install WebDAVÂ client to your local machine based on your operating system. For example, if you are an Ubuntu user you can install devfs2 by running the following command:
sudo apt-get install davfs2
Configuring davfs2 in Your Local File System
Add the following entries into davfs2.conf
file.
There is a system wide configuration file /etc/davfs2/davfs2.conf
and user configuration files ~/.davfs2/davfs2.conf
. When mount.davfs
is invoked by root, only the system wide configuration file is read. When invoked by an ordinary user, the user configuration file is read in addition, and the user configuration takes precedence over the system wide configuration.
use_locks 0 drop_weak_etags 1 allow_cookie 1
Without these settings, WebDAV may not function as expected.
Â
Mounting Registry to Your Local File System
Use following steps to mount the complete Registry root into your file system (/mnt/webdav
directory) if you are a Linux User.
- Create a directory
/mnt/webdav1
in your system. Run the following command:
sudo mount -t davfs https://localhost:9443/registry/resourcewebdav /mnt/webdav1/
If you want to mount to a non-root registry location, the format of the url should be:https://<HOST>:<PORT>/registry/resourcewebdav<REGISTRY PATH>
E.g., mountÂ/_system/governance/
path to WebDAV:Â
sudo mount -t davfs https://localhost:9443/registry/resourcewebdav/_system/governance/ /mnt/webdav1/
- During the mounting process give the username/password of a user who has read permission in to Registry root.
- This will mount complete
GREG
root to your directory created in/mnt/webdav1
.