26 <li><a href="remove.html">remove</a></li> |
26 <li><a href="remove.html">remove</a></li> |
27 <li><a href="copy.html">copy</a></li> |
27 <li><a href="copy.html">copy</a></li> |
28 <li><a href="move.html">move</a></li> |
28 <li><a href="move.html">move</a></li> |
29 <li><a href="get-property.html">get-property</a></li> |
29 <li><a href="get-property.html">get-property</a></li> |
30 <li><a href="set-property.html">set-property</a></li> |
30 <li><a href="set-property.html">set-property</a></li> |
|
31 <li><a href="remove-property.html">remove-property</a></li> |
31 <li><a href="lock.html">lock</a></li> |
32 <li><a href="lock.html">lock</a></li> |
32 <li><a href="unlock.html">unlock</a></li> |
33 <li><a href="unlock.html">unlock</a></li> |
33 <li><a href="info.html">info</a></li> |
34 <li><a href="info.html">info</a></li> |
34 <li><a href="date.html">date</a></li> |
35 <li><a href="date.html">date</a></li> |
35 <li><a href="add-repository.html">add-repository</a></li> |
36 <li><a href="add-repository.html">add-repository</a></li> |
46 <li><a href="introduction.html">Introduction</a></li> |
47 <li><a href="introduction.html">Introduction</a></li> |
47 <li><a href="sync-commands.html">Commands</a></li> |
48 <li><a href="sync-commands.html">Commands</a></li> |
48 <ul> |
49 <ul> |
49 <li><a href="pull.html">pull</a></li> |
50 <li><a href="pull.html">pull</a></li> |
50 <li><a href="push.html">push</a></li> |
51 <li><a href="push.html">push</a></li> |
|
52 <li><a href="archive.html">archive</a></li> |
51 <li><a href="resolve-conflicts.html">resolve-conflicts</a></li> |
53 <li><a href="resolve-conflicts.html">resolve-conflicts</a></li> |
52 <li><a href="delete-conflicts.html">delete-conflicts</a></li> |
54 <li><a href="delete-conflicts.html">delete-conflicts</a></li> |
53 <li><a href="trash-info.html">trash-info</a></li> |
55 <li><a href="trash-info.html">trash-info</a></li> |
54 <li><a href="empty-trash.html">empty-trash</a></li> |
56 <li><a href="empty-trash.html">empty-trash</a></li> |
55 <li><a href="add-directory.html">add-directory</a></li> |
57 <li><a href="add-directory.html">add-directory</a></li> |
70 <p><strong><code>dav lock [-pc] <url></code></strong></p> |
72 <p><strong><code>dav lock [-pc] <url></code></strong></p> |
71 <p>Creates a lock on the resource specified by the <em>url</em>. The lock is an exclusive write lock with infinite depth.</p> |
73 <p>Creates a lock on the resource specified by the <em>url</em>. The lock is an exclusive write lock with infinite depth.</p> |
72 <p>If the resource is successfully locked, a lock token for this resource is printed to stdout. This lock token should be saved somewhere to unlock the resource eventually.</p> |
74 <p>If the resource is successfully locked, a lock token for this resource is printed to stdout. This lock token should be saved somewhere to unlock the resource eventually.</p> |
73 <p><strong><code>-p</code></strong> disable file name and path decryption if enabled</p> |
75 <p><strong><code>-p</code></strong> disable file name and path decryption if enabled</p> |
74 <p><strong><code>-c</code></strong> enable file name and path decryption</p> |
76 <p><strong><code>-c</code></strong> enable file name and path decryption</p> |
|
77 <p><strong><code>-T <seconds></code></strong> specify the lock token timeout in seconds</p> |
75 <h3 id="example-1-lock-resource-and-use-the-lock-token">Example 1: lock resource and use the lock token</h3> |
78 <h3 id="example-1-lock-resource-and-use-the-lock-token">Example 1: lock resource and use the lock token</h3> |
76 <pre><code>$ dav lock myserv/resource |
79 <pre><code>$ dav lock myserv/resource |
77 opaquelocktoken:0454905e-f2ff-45c4-a3d7-5c4e4db5ce37 |
80 opaquelocktoken:0454905e-f2ff-45c4-a3d7-5c4e4db5ce37 |
78 $ dav put -L opaquelocktoken:0454905e-f2ff-45c4-a3d7-5c4e4db5ce37 myserv/resource newfile |
81 $ dav put -L opaquelocktoken:0454905e-f2ff-45c4-a3d7-5c4e4db5ce37 myserv/resource newfile |
79 $ dav unlock -L opaquelocktoken:0454905e-f2ff-45c4-a3d7-5c4e4db5ce37 myserv/resource</code></pre> |
82 $ dav unlock -L opaquelocktoken:0454905e-f2ff-45c4-a3d7-5c4e4db5ce37 myserv/resource</code></pre> |