docs/src/export.md

Sat, 28 Mar 2020 16:04:46 +0100

author
Mike Becker <universe@uap-core.de>
date
Sat, 28 Mar 2020 16:04:46 +0100
branch
feature/dav-edit
changeset 711
8d40b5ccc43e
parent 408
f71eab18ed38
permissions
-rw-r--r--

adds check for encryption key (otherwise segfault when trying to create a fresh encrypted file without a key)

---
title: 'dav export'
---

**`dav export [-pc] [-o <file>] [-u <date>] <url>`**

Downloads a resource or a collection with all child resources, and writes the contents to an archive file. The Output is written to stdout, unless the **`-o`** option is used.

Currently the only available archive format is the ustar format.

These archive files can be uploaded to an collection with the [dav import][1] command.

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

**`-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

[1]: ./import.html

### Example: create tar file from collection

	$ dav export -o collection.tar myserv/col/

mercurial