docs/src/restore.md

Sun, 15 Dec 2019 16:22:08 +0100

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

finish documentation of new dav-sync commands and options

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

mercurial