|
1 dav date |
|
2 ======== |
|
3 |
|
4 **`date [url]`** |
|
5 |
|
6 The purpose of this command is to get the current date from a server and print it on stdout (http date format). This in useful in combination with the `-U` option for the `list` and `get` command. |
|
7 |
|
8 The *url* can be any http url. If no *url* is specified, the local time is used. |
|
9 |
|
10 ### Example: incremental dav get |
|
11 |
|
12 It is possible to download only resources, which are modified since a specified date. The *date* command allows you to easily store the date of the last *get*. |
|
13 |
|
14 $ dav get -R myserv/col/ |
|
15 ... |
|
16 $ dav date myserv > last_get |
|
17 |
|
18 After some resources are changed on the server, you can download only the modified files. |
|
19 |
|
20 $ dav get -R -U `cat last_get` myserv/col/ |
|
21 |
|
22 |
|
23 |