docs/html/add-directory.html

changeset 275
fa48ab29abd2
parent 273
c743721d566f
child 276
20a176d5a53e
equal deleted inserted replaced
274:5577d3eae04c 275:fa48ab29abd2
63 </div> 63 </div>
64 64
65 <!-- begin content --> 65 <!-- begin content -->
66 <div class="content"> 66 <div class="content">
67 <h1 id="dav-sync-add-directory">dav-sync add-directory</h1> 67 <h1 id="dav-sync-add-directory">dav-sync add-directory</h1>
68 <p>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 <a href="./add-repository.html">dav add-repository</a>.</p> 68 <p>This command runs an interactive assistant that creates a <a href="./sync-configuration.html">sync-directory configuration</a> and adds it to the sync.xml file. Before running this command, a repository must be created. See <a href="./add-repository.html">dav add-repository</a>.</p>
69 <p><strong>Command alias:</strong> add-dir</p> 69 <p><strong>Command alias:</strong> add-dir</p>
70 <p>The assistant firstly asks for a unique sync-directory name. This may not match the physical directory name. If you are not sure, which names are already in use, you can get a list of currently present sync-directories with <a href="./list-directories.html">dav-sync list-directories</a>. Then you specifiy the local path, select the dav repository and specify the collection within that repository. You may use environment variables like <code>$HOME</code> within the path name. A call of <code>add-directory may</code> look like this.</p>
71 <pre><code>$ dav-sync add-directory
72 Each sync directory must have an unique name.
73 name: mysyncdir
74 Enter local directory path.
75 path: $HOME/important_files
76 Specify webdav repository.
77 0) myfirstrepo
78 1) anotherrepo
79 repository: 0
80 Enter collection relative to the repository base url.
81 collection (default: /): /important_files</code></pre>
82 <p>Assume <code>myfirstrepo</code> points to <code>https://mynas.local/</code>. Then <code>dav-sync</code> would synchronize <code>$HOME/important_files/</code> with <code>https://mynas.local/important_files</code>.</p>
70 </div> 83 </div>
71 <!-- end content --> 84 <!-- end content -->
72 </body> 85 </body>
73 </html> 86 </html>

mercurial