1 dav-sync add-directory |
1 dav-sync add-directory |
2 ====================== |
2 ====================== |
3 |
3 |
4 The command runs an interactive assistant that creates a sync-directory configuration and adds it to the sync.xml file. Before running this command, a repository must be created. See [dav add-repository][1]. |
4 This command runs an interactive assistant that creates a [sync-directory configuration][1] and adds it to the sync.xml file. |
|
5 Before running this command, a repository must be created. See [dav add-repository][2]. |
5 |
6 |
6 [1]: ./add-repository.html |
7 [1]: ./sync-configuration.html |
|
8 [2]: ./add-repository.html |
7 |
9 |
8 **Command alias:** add-dir |
10 **Command alias:** add-dir |
|
11 |
|
12 The assistant firstly asks for a unique sync-directory name. |
|
13 This may not match the physical directory name. |
|
14 If you are not sure, which names are already in use, you can get a list of currently present sync-directories with [dav-sync list-directories][3]. |
|
15 Then you specifiy the local path, select the dav repository and specify the collection within that repository. |
|
16 You may use environment variables like `$HOME` within the path name. |
|
17 A call of `add-directory may` look like this. |
|
18 |
|
19 $ dav-sync add-directory |
|
20 Each sync directory must have an unique name. |
|
21 name: mysyncdir |
|
22 Enter local directory path. |
|
23 path: $HOME/important_files |
|
24 Specify webdav repository. |
|
25 0) myfirstrepo |
|
26 1) anotherrepo |
|
27 repository: 0 |
|
28 Enter collection relative to the repository base url. |
|
29 collection (default: /): /important_files |
|
30 |
|
31 Assume `myfirstrepo` points to `https://mynas.local/`. |
|
32 Then `dav-sync` would synchronize `$HOME/important_files/` with `https://mynas.local/important_files`. |
|
33 |
|
34 |
|
35 [3]: ./list-directories.html |
|
36 |