1 ---
2 title: 'dav-sync restore'
3 ---
4
5 **`dav-sync restore [-ldRM] [-V <version>] [-s <directory>] [file...]`**
6
7 Restores local files by downloading them from the server. The *file* argument can be a local absolute or relative file path.
8
9 If no files are specified, a sync directory must be specified with the *-s* option.
10
11 **`-l`** Lock the repository before accessing it. After `restore` completed, the repository is unlocked
12
13 **`-d`** Don't lock the repository (default)
14
15 **`-R`** Restore only files, that were locally removed
16
17 **`-M`** Restore only files, that were locally modified
18
19 **`-V <version>`** Restore a specific file version. *version* must be the version name listed by [dav-sync list-versions][1]
20
21 [1]: ./sync-list-versions.html
22
23
24