ControlTier > core
 

get

Command Reference

Description

Get a WebDAV resource

The davutil get command retrieves a WebDAV resource and stores it on the local system.

If the url ends with a "/" the resource is treated as a collection and the destination a directory.

static: This command can be run outside of an object context.

Usage

ctl -m davutil -c get -dest <> [-include <**/*>] [-password <>] -url <> [-username <>]

Options

Option Description Type Default
dest Destination file path. string
include Collection include expression. string **/*
password DAV user name string ${entity.attribute.password}
url Source file path or URL.

This can be a local file path (to copy from a local file), or a URL on the DAV server. This supports the dav:// shortcut schema.

string
username DAV user name string ${entity.attribute.username}

Examples

Example 1: Get a file:

ctl -m davutil -c get -- \
      -src dav://junk/fun.sh \
	  -dest /tmp/fun.sh

Example 2: Get a WebDAV collection and store it in a local directory:

ctl -m davutil -c get -- \
	  -src dav://examples/scripts/ \
      -dest /tmp/scripts