docs/html/add-directory.html

changeset 276
20a176d5a53e
parent 275
fa48ab29abd2
child 283
0e36bb75a732
equal deleted inserted replaced
275:fa48ab29abd2 276:20a176d5a53e
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>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> 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> 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</code> may look like this.</p>
71 <pre><code>$ dav-sync add-directory 71 <pre><code>$ dav-sync add-directory
72 Each sync directory must have an unique name. 72 Each sync directory must have an unique name.
73 name: mysyncdir 73 name: mysyncdir
74 Enter local directory path. 74 Enter local directory path.
75 path: $HOME/important_files 75 path: $HOME/important_files
77 0) myfirstrepo 77 0) myfirstrepo
78 1) anotherrepo 78 1) anotherrepo
79 repository: 0 79 repository: 0
80 Enter collection relative to the repository base url. 80 Enter collection relative to the repository base url.
81 collection (default: /): /important_files</code></pre> 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> 82 <p>Assume <code>myfirstrepo</code> points to <code>https://mynas.local/webdav</code>. Then <code>dav-sync</code> would synchronize <code>$HOME/important_files/</code> with <code>https://mynas.local/webdav/important_files</code>.</p>
83 </div> 83 </div>
84 <!-- end content --> 84 <!-- end content -->
85 </body> 85 </body>
86 </html> 86 </html>

mercurial