docs/html/copy.html

changeset 279
f0f24da5f920
parent 273
c743721d566f
child 282
3070d72f54af
equal deleted inserted replaced
278:c9096eb3554c 279:f0f24da5f920
67 <h1 id="dav-copy">dav copy</h1> 67 <h1 id="dav-copy">dav copy</h1>
68 <p><strong><code>copy [-pcO] [-L &lt;lock&gt;] &lt;url1&gt; &lt;url2&gt;</code></strong></p> 68 <p><strong><code>copy [-pcO] [-L &lt;lock&gt;] &lt;url1&gt; &lt;url2&gt;</code></strong></p>
69 <p>Creates a duplicate of the resource identified by <em>url1</em> at the location <em>url2</em>. All resource properties are copied. Currently <em>url1</em> and <em>url2</em> must be the same host.</p> 69 <p>Creates a duplicate of the resource identified by <em>url1</em> at the location <em>url2</em>. All resource properties are copied. Currently <em>url1</em> and <em>url2</em> must be the same host.</p>
70 <p>If <em>url1</em> is a collection, all children are copied.</p> 70 <p>If <em>url1</em> is a collection, all children are copied.</p>
71 <p>If <em>url2</em> already exists, the command aborts, unless the <code>-O</code> option is specified.</p> 71 <p>If <em>url2</em> already exists, the command aborts, unless the <code>-O</code> option is specified.</p>
72 <p>The command uses a single WebDAV COPY request to duplicate the resources. It does not handle the dav encryption functionality, which means it does not modify <em>url2</em> if encryption is enabled.</p> 72 <p>The command uses a single WebDAV COPY request to duplicate the resources. You may use file name and path decryption to copy and encrypted resource. Please note that the copy will always be located at <em>url2</em>, so the top most collection name will not be disguised. See <a href="./encryption.html">encryption</a> for more details on how encryption works.</p>
73 <p><strong><code>-p</code></strong> disable file name and path decryption if enabled. This applies only to <em>url1</em></p> 73 <p><strong><code>-p</code></strong> disable file name and path decryption for <em>url1</em></p>
74 <p><strong><code>-c</code></strong> enable file name and path decryption This applies only to <em>url1</em></p> 74 <p><strong><code>-c</code></strong> enable file name and path decryption for <em>url1</em></p>
75 <p><strong><code>-O</code></strong> override the destination resource</p> 75 <p><strong><code>-O</code></strong> override the destination resource</p>
76 <p><strong><code>-L &lt;lock&gt;</code></strong> use a lock token. See <a href="./lock.html">dav lock</a></p> 76 <p><strong><code>-L &lt;lock&gt;</code></strong> use a lock token. See <a href="./lock.html">dav lock</a></p>
77 <p><strong>Command alias:</strong> cp</p> 77 <p><strong>Command alias:</strong> cp</p>
78 </div> 78 </div>
79 <!-- end content --> 79 <!-- end content -->

mercurial