docs/src/pull.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 409
90a6d6952d83
permissions
-rw-r--r--

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

---
title: 'dav-sync pull'
---

**`dav-sync pull [-cldr] [-t <tags>] <directory>`**

Pulls all changes from the server. All new or modified files are downloaded and all files deleted on the server are deleted locally. If a file is also locally modified and conflict detection is not disabled, the local file is renamed and an entry in the conflict database is added.

When a trash directory is configured for the SyncDirectory, all files that would be deleted are instead moved to the trash directory.

When backup-on-pull is enabled for the SyncDirectory, all files that would be overwritten are also moved to the trash.

**`-c`** Disable conflict detection. This always overwrites locally modified files

**`-l`** Lock the repository before accessing it. After `pull` completed, the repository is unlocked

**`-d`** Don't lock the repository (default)

**`-t <tags>`** Only sync files that match the tag filter expression

**`-r`** Delete files not matching the tag filter

mercurial