docs/src/restore.md

Sun, 15 Dec 2019 16:54:05 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sun, 15 Dec 2019 16:54:05 +0100
changeset 703
2e3a24b9896a
parent 702
444aa8fe133f
permissions
-rw-r--r--

update man pages

---
title: 'dav-sync restore'
---

**`dav-sync restore [-ldRM] [-V <version>] [-s <directory>] [file...]`**

Restores local files by downloading them from the server. The *file* argument can be a local absolute or relative file path.

If no files are specified, a sync directory must be specified with the *-s* option.

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

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

**`-R`** Restore only files, that were locally removed

**`-M`** Restore only files, that were locally modified

**`-V <version>`** Restore a specific file version. *version* must be the version name listed by [dav-sync list-versions][1]

[1]: ./sync-list-versions.html

mercurial