docs/src/restore.md

Sun, 17 Dec 2023 14:25:34 +0100

author
Mike Becker <universe@uap-core.de>
date
Sun, 17 Dec 2023 14:25:34 +0100
changeset 797
edbb20b1438d
parent 703
2e3a24b9896a
permissions
-rw-r--r--

[Makefile] fix missing rules preventing dry-runs

We have to support dry-runs, because many IDEs are using
dry-runs to collect build information.

Some rules have dependencies that expect certain files or
directories to be just present. We added respective build
rules which invoke the test program. This way, the behavior
when running make normally is exactly the same, but dry-runs
are also not failing now.

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