1 dav add-repository |
1 dav add-repository |
2 ================== |
2 ================== |
3 |
3 |
4 The command runs an interactive assistant that creates a repository configuration and adds it to the config.xml file. |
4 This command runs an interactive assistant that creates a repository [configuration][1] and adds it to the config.xml file. |
|
5 |
|
6 [1]: ./configuration.html |
5 |
7 |
6 **Command alias:** add-repo |
8 **Command alias:** add-repo |
|
9 |
|
10 The assistant firstly asks for a unique repository name. |
|
11 If you are not sure, which names are already in use, you can get a list of currently present repositories with [dav list-repositories][2]. |
|
12 Then you specifiy the base URL and optional authentication information. |
|
13 Please keep in mind, that the password is stored base64 encoded in your configuration. |
|
14 If you do not want this to happen, leave the password blank. |
|
15 `dav` will ask you for the password when accessing the repository. |
|
16 Beware that you don't use password prompt in background jobs, though. |
|
17 A call of `add-repository` may look like this. |
|
18 |
|
19 $ dav add-repository |
|
20 Each repository must have an unique name. |
|
21 name: myfirstrepo |
|
22 |
|
23 Specify the repository base url. |
|
24 url: https://mynas.local/webdav |
|
25 |
|
26 User for HTTP authentication. |
|
27 user (optional): mywebuser |
|
28 password (optional): |
|
29 |
|
30 [2]: ./list-repositories.html |
|
31 |