1 ---
2 title: 'dav move'
3 ---
4
5 **`dav move [-pcO] [-L <lock>] <url> <url>`**
6
7 Moves the resource identified by *url1* to the location *url2*. Currently *url1* and *url2* must be on the same host.
8
9 If *url2* already exists, the command aborts, unless the `-O` option is specified.
10
11 The command uses a single WebDAV MOVE request to move the resources.
12 You may use file name and path decryption to copy an encrypted resource.
13 Please note that the target location will be exactly *url2*, so the top most collection name will not be disguised.
14 See [encryption][2] for more details on how encryption works.
15
16 **`-p`** disable file name and path decryption for *url1*
17
18 **`-c`** enable file name and path decryption for *url1*
19
20 **`-O`** overwrite the destination resource
21
22 **`-L <lock>`** use a lock token. See [dav lock][1]
23
24 [1]: ./lock.html
25
26 **Command alias:** mv
27