|
1 --- |
|
2 title: 'dav-sync list-versions' |
|
3 --- |
|
4 |
|
5 **`dav-sync list-versions [-s <syncdir>] <file>`** |
|
6 |
|
7 Lists all available versions of a SyncDirectory file. Example: |
|
8 |
|
9 $ dav-sync list-versions test.txt |
|
10 name: 1576420562-69ba29c77659c2db |
|
11 lastmodified: Sun, 15 Dec 2019 10:39:30 GMT |
|
12 url: https://example.com/webdav/.history/157/1576420562-69ba29c77659c2db |
|
13 |
|
14 name: 1576420572-b6a1862b0b1c04e6 |
|
15 lastmodified: Sun, 15 Dec 2019 11:12:28 GMT |
|
16 url: https://example.com/webdav/.history/157/1576420572-b6a1862b0b1c04e6 |
|
17 |
|
18 name: 1576420613-8b1260a7a6943580 |
|
19 lastmodified: Sun, 15 Dec 2019 15:33:06 GMT |
|
20 url: https://example.com/webdav/.history/157/1576420613-8b1260a7a6943580 |
|
21 |
|
22 The name of a version can be used to restore a previous file version with the [dav-sync restore][1] command. |
|
23 |
|
24 **`-s <syncdir>`** SyncDirectory for this file |
|
25 |
|
26 [1]: ./restore.html |