docs/src/dav.1.md

Sat, 15 Jun 2019 11:01:37 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sat, 15 Jun 2019 11:01:37 +0200
changeset 605
bbc66c72661a
parent 440
a62d312d8e53
child 703
2e3a24b9896a
permissions
-rw-r--r--

add new api for encrypted properties

% DAV(1) Version 1.2 | DavUtils User Manuals
% Olaf Wintermann
% July 1, 2018

# NAME

**dav** - command line WebDAV client

# SYNOPSIS

**dav** *command* [*options*] *arguments*...

# DESCRIPTION

TODO

# COMMANDS

list [**-altdepcR**] [**-u** *date*] *url*
:   Lists the files at *url*.

get [**-pcRK**] [**-o** *file*] [**-u** *date*] *url*
:   Downloads a resource from *url*.

put [**-pcR**] [**-k** *key*] [**-L** *lock*] *url* *file*
:   Uploads a resource to *url*.

mkdir [**-pc**] [**-k** *key*] [**-L** *lock*] *url*
:   Creates a new collection at *url*.

remove [**-pc**] [**-L** *lock*] *url*
:   Deletes a resource or collection at *url*

copy [**-pcO**] [**-L** *lock*] *srcurl* *desturl*
:   Copies a resource or collection from *srcurl* to *desturl*.

move [**-pcO**] [**-L** *lock*] *srcurl* *desturl*
:   Moves a resource or collection from *srcurl* to *desturl*.

export [**-pc**] [**-o** *file*] [**-u** *date*] *url*
:   Exports a resource or collection to a **tar(5)** archive. By default the
    data is written to *stdout*, but you may specify a *file* with the **-o**
    option.

import [**-pc**] [**-k** *key*] [**-L** *lock*] *url* *file*
:   Uploads and extracts the contents of the **tar(5)** archive *file* to *url*.

get-property [**-pcx**] [**-n** *uri*] *url* *property*
:   Gets a specific resource property. Every WebDAV property has a name and an
    XML namespace. A namespace can be specified with the **-n** option or with
    a prefixed name. The prefix and property name are separated by a colon
    *:* as usual.
    
    If the **-x** option is specified, a valid XML document containing the
    value is printed on *stdout*.
    
    If the property contains XML data and the **-x** option is not specified, 
    the value is printed on *stderr* in an XML-like format.

set-property [**-pcx**] [**-L** *lock*] [**-n** *uri*] *url* *property* [*value*]
:   Sets a resource property to the specified value. See **get-property** for
    details. If no *value* is specified, it is read from *stdin*.

remove-property [**-pc**] [**-n** *uri*] *url* *property*
:   Removes a resource property.

lock [**-pc**] [**-T** *timeout*] *url*
:   Creates a lock on the resource at *url*. The lock is an exclusive write
    lock with infinite depth. If the resource is sucessfully locked, a lock
    token for this resource is printed to *stdout*. This lock token should be
    saved to unlock the resource eventually.

unlock [**-pc**] [**-L** *lock*] *url*
:   Unlocks the resource at *url* with a lock token. If *lock* is not
    specified, the token is read from *stdin*.

info [**-pc**] *url*
:   Prints some information and lists al properties for the resource at *url*.

date [*url*]
:   Gets the time from the server providing the resource denoted by *url*.
    If *url* is not specified, this command prints the local time.
    This command is useful, if the server clock and the local clock are not
    in sync.

# CONFIGURATION COMMANDS

add-repository
:   This command runs an interactive assistant that creates a repository
    configuration.

remove-repository *name*
:   Removes the repository with the specified *name* from the configuration.

list-repositories
:   Lists all currently configured repositories.

check-config
:   Validates the **$HOME/.dav/config.xml** configuration file.

# GENERAL OPTIONS

The following options can be used with all commands.

-i
:   Disable cert verification.

-N
:   Disable authentication prompt.

-v
:   Verbose output.

# COMMAND OPTIONS

-a
:   Show all files.

-c
:   Enable full encryption.

-d
:   Order by last modified date.

-e
:   Show extended flags.

-K
:   Keep already present files.

-k *key*
:   Key to use for encryption.

-l
:   Print resources in long list format.

-L *lock*
:   Specificy lock token.

-n *uri* 
:   Specify namespace *uri*. There are two namespaces configured by default.

    1. *D* for the *DAV:* namespace

    2. *idav* for the *http://davutils.org/* namespace

-o *file*
:   Write output to *file*. Use '-' for stdout.

-O
:   Override resources.

-p
:   Don't encrypt or decrypt files.

-R
:   Recursively do the operation for all children.

-t
:   Print content type.

-T *sec*
:   Timeout in seconds.

-u *date*
:   Get resources which are modified since the specified *date*.

-x
:   XML property content.


# SEE ALSO

`dav-sync` (1).

DavUtils full documentation: <https://davutils.sourceforge.io/>.

mercurial