docs/src/get.md

Tue, 09 Apr 2024 21:28:24 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Tue, 09 Apr 2024 21:28:24 +0200
changeset 810
baf199df500e
parent 701
0a48f17c729d
permissions
-rw-r--r--

don't store directories with a trailing path separator in the sync db

---
title: 'dav get'
---

**`dav get [-pcRK] [-o <file>] [-u <date>] [-V <version>] <url>`**

Downloads a resource. This command also downloads collections and its child resources when the **`-R`** option is used.
When downloading a single resource, the default local file name is the resource
name. When downloading collections, it does **not** create a local directory with
the collection's name and places its children in there, but it downloads the
children directly to the current working directory.

**`-p`** disable file name and content decryption. You get exactly what is stored
  on the server.
  
**`-c`** enable file name and content decryption

**`-R`** download a collection

**`-K`** download only files that don't exist locally

**`-o <file>`** specify the local output file. A **-** indicates stdout

**`-u <date>`** download only files which are modified since the specified date. Uses the HTTP date format

**`-V <version>`** downloads a specific version of the resource. Available versions can be listed with the *list-versions* command

mercurial