UNIXworkcode

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