| 1 | <HTML> |
| 2 | <HEAD><TITLE>Document Exchange</TITLE></HEAD> |
| 3 | <BODY> |
| 4 | <style> |
| 5 | pre { |
| 6 | padding: 8px; |
| 7 | background: #eef; |
| 8 | border: thin dashed #0076A3; |
| 9 | } |
| 10 | ## table { |
| 11 | ## border-collapse: collapse; |
| 12 | ## } |
| 13 | table, th, td { |
| 14 | padding: 3px; |
| 15 | } |
| 16 | </style> |
| 17 | |
| 18 | <h1>DOcument eXchange (DOX)</h1> |
| 19 | |
| 20 | <h3>Overview</h3> |
| 21 | <a href="/dox">DOX</a> |
| 22 | offers web based document exchange with versioning, syncing and user |
| 23 | management.<br> |
| 24 | DOX is designed as a modern replacement of ftp with rsync features.<br> |
| 25 | DOX must be enabled by the <a href="mailto:$SERVER_ADMIN$">fexmaster</a>, |
| 26 | it is a configuration option and not activated per default.<br> |
| 27 | <p> |
| 28 | <a href="/dox">DOX</a> consists of folders (toplevel directories) with |
| 29 | their specific configuration (users, access, etc), stored on the F*EX |
| 30 | server.<br> |
| 31 | A folder can contain any number of document files or subdirectories.<br> |
| 32 | As with <a href="/sharing/">F*EX archive sharing</a> DOX documents do not |
| 33 | have an expiration date. They stay online, until you delete them.<br> |
| 34 | <p> |
| 35 | DOX is <b>not</b> suitable for backup purposes, because it does not convey |
| 36 | file attributes like permissions, ownerships or ACLs and it cannot handle |
| 37 | hard links correctly.<br> |
| 38 | Better use <a href="/sharing/#_">archive sharing</a> for this task. |
| 39 | |
| 40 | <a name="Usage"></a> |
| 41 | <h3>Usage</h3> |
| 42 | You can use <a href="/dox">DOX</a> with any webbrowser with javascript |
| 43 | support. |
| 44 | <p> |
| 45 | With the CLI client |
| 46 | <a href="http://fex.belwue.de/usecases/fexsync.html#fexdox">fexdox</a> |
| 47 | from the |
| 48 | <a href="/FAQ/user.html#How_do_I_install_the_UNIX_clients">fextools</a> |
| 49 | package you can synchronize a local directory with DOX, either for upload or |
| 50 | for download.<br> |
| 51 | |
| 52 | <a name="Owner_and_users"></a> |
| 53 | <h3>Owner and users</h3> |
| 54 | DOX has two different views: owner or user |
| 55 | <p> |
| 56 | <ul> |
| 57 | <li>For <b>owner view</b> you must be <a href="/dox">logged in</a> as owner, |
| 58 | using your regular F*EX login.<br> |
| 59 | It offers you an overview of all your folders and backup versions.<br> |
| 60 | Entering a folder or backup version shows its content.<br> |
| 61 | An owner can create any number of folders and upload files or |
| 62 | directories in a folder.<br> |
| 63 | Example screenshots (click for full size): |
| 64 | <p> |
| 65 | <table border=1><tr> |
| 66 | <td valign="top"><a href="DOX_1.png"><img src="small/DOX_1.png"></a> |
| 67 | <td valign="top"><a href="DOX_2.png"><img src="small/DOX_2.png"></a> |
| 68 | </tr></table> |
| 69 | <p> |
| 70 | Files and directories with a "#" prefix are private: |
| 71 | they are blocked for user access, only the owner can read them.<br> |
| 72 | <p> |
| 73 | <li>For <b>user view</b> you need a DOX URL from the owner, e.g. |
| 74 | https://fex.rus.uni-stuttgart.de/dox/[email protected]/test/<br> |
| 75 | It offers you read access only to this folder (and |
| 76 | subdirectories).<br> |
| 77 | A user can read or download files or directories.<br> |
| 78 | A user cannot see or read blocked files or directories.<br> |
| 79 | For upload he needs a special user account, see below.<br> |
| 80 | Example screenshot (click for full size): |
| 81 | <p> |
| 82 | <table border=1><tr> |
| 83 | <td valign="top"><a href="DOX_3.png"><img src="small/DOX_3.png"></a> |
| 84 | </tr></table> |
| 85 | <p> |
| 86 | </ul> |
| 87 | <p> |
| 88 | Both, owner and user, can use the CLI client |
| 89 | <a href="http://fex.belwue.de/usecases/fexsync.html#fexdox">fexdox</a> |
| 90 | for file syncing and a webbrowser to download or upload documents. |
| 91 | <p> |
| 92 | Some document types like GIF PNG JPG PDF HTML TXT can be viewed directly |
| 93 | with a webbrowser. |
| 94 | |
| 95 | <a name="Folders_and_configuration"></a> |
| 96 | <h3>Folders and configuration</h3> |
| 97 | You can create a folder either with your webbrowser, or with the CLI client |
| 98 | <a href="http://fex.belwue.de/usecases/fexsync.html#fexdox">fexdox</a><br> |
| 99 | A folder on the fexserver has the same name as your local directory.<br> |
| 100 | Allowed characters for the folder name are A-Z a-z 0-9 @ ~ ^ . , + -<br> |
| 101 | All other characters will be substituted with "_" (underscore). |
| 102 | <p> |
| 103 | A <code>/FOLDER/.fexdox/</code> configuration subdirectory will be |
| 104 | automatically created. |
| 105 | <p> |
| 106 | <code>/FOLDER/.fexdox/config</code> contains the configuration: |
| 107 | <p> |
| 108 | <table border=0> |
| 109 | <tr><td><code>backups=NUMBER</code> |
| 110 | <td># how many backup versions fexdox automatically creates and keeps (default: 1)</tr> |
| 111 | <tr><td><code>useraccess=no</code> |
| 112 | <td># no access for other users</tr> |
| 113 | <tr><td><code>useraccess=yes</code> |
| 114 | <td># access for other users listed in the users file (default)</tr> |
| 115 | <tr><td><code>useraccess=anonymous</code> |
| 116 | <td># anonymous read access for everybody</tr> |
| 117 | <tr><td><code>charset=NAME</code> |
| 118 | <td># character set name for files (default: utf-8)</tr> |
| 119 | <tr><td><code>showdelete=all</code> |
| 120 | <td># show [delete] button for folders and backups (default)</tr> |
| 121 | <tr><td><code>showdelete=backup</code> |
| 122 | <td># show [delete] button for backups</tr> |
| 123 | <tr><td><code>showdelete=no</code> |
| 124 | <td># show no [delete] button</tr> |
| 125 | </table> |
| 126 | <p> |
| 127 | In <code>/FOLDER/.fexdox/users</code> you can write your users with passwords: |
| 128 | <pre> |
| 129 | USER1:PASSWORD1 |
| 130 | USER2:PASSWORD2 |
| 131 | USER3:PASSWORD3 |
| 132 | ... |
| 133 | </pre> |
| 134 | User and password can be any string (without spaces and colons).<br> |
| 135 | If the user string is an email address, this user can send files |
| 136 | to the owner via [send file] button. |
| 137 | <p> |
| 138 | You can further restrict user access to specific ips or ip ranges via |
| 139 | configuration file <code>/FOLDER/.fexdox/access</code> with the content: |
| 140 | <pre> |
| 141 | IP1 |
| 142 | IP2-IP3 |
| 143 | ... |
| 144 | </pre> |
| 145 | <p> |
| 146 | User access to specific files and directories can be blocked via |
| 147 | <code>/FOLDER/.fexdox/private</code> with the content: |
| 148 | <pre> |
| 149 | FILE1 |
| 150 | FILE2 |
| 151 | DIR1/FILE3 |
| 152 | ... |
| 153 | </pre> |
| 154 | You can use the well known shell meta characters (wild cards) |
| 155 | "*" "?" "[...]" in the file and directory names. |
| 156 | <br> |
| 157 | Files and directories with names beginning with |
| 158 | "." or "#" or ending with "~" are implicitly blocked. |
| 159 | <br> |
| 160 | No user will see or can download blocked files. |
| 161 | <p> |
| 162 | |
| 163 | <a name="User_upload"></a> |
| 164 | <h3>User upload</h3> |
| 165 | To allow user upload the owner has to create an upload directory for |
| 166 | him.<br> |
| 167 | This can be done in <code>/FOLDER/.upload</code> via |
| 168 | <p> |
| 169 | <em>[Create] an upload directory for user ...</em> |
| 170 | <p> |
| 171 | Below you can set a "!publish" flag.<br> |
| 172 | Only users with this flag are able to move their uploads to the regular |
| 173 | folder.<br> |
| 174 | Without this flag you (the owner) have to do this manually.<br> |
| 175 | Otherwise the uploaded files stay in the upload directory, invisable for |
| 176 | other users. |
| 177 | |
| 178 | <a name="Extras"></a> |
| 179 | <h3>Extras</h3> |
| 180 | In <code>.#.html</code> or <code>#.html</code> you can put |
| 181 | HTML code which will be displayed above the directory listing, e.g: |
| 182 | <pre> |
| 183 | <h1>This directory contains great stuff about hotchpotch</h1> |
| 184 | </pre> |
| 185 | |
| 186 | <a name="Versioning"></a> |
| 187 | <h3>Versioning</h3> |
| 188 | The owner can create or delete a backup version of a folder via |
| 189 | webbrowser.<br> |
| 190 | A backup version is represented as DATE_TIME string.<br> |
| 191 | Backup versions are not accessible by users.<br> |
| 192 | The owner can restore single files or directories or the whole backup |
| 193 | version.<br> |
| 194 | The client |
| 195 | <a href="http://fex.belwue.de/usecases/fexsync.html#fexdox">fexdox</a> |
| 196 | automatically creates a new backup and keeps only that number of |
| 197 | backups specified in <code>/FOLDER/.fexdox/config</code>, |
| 198 | older backups will be deleted! |
| 199 | |
| 200 | <a name="Folder_actions"></a> |
| 201 | <h3>Folder actions</h3> |
| 202 | <table> |
| 203 | <tr><td>[backup]<td>create backup version</tr> |
| 204 | <tr><td>[restore]<td>restore backup version</tr> |
| 205 | <tr><td>[delete]<td>delete backup version</tr> |
| 206 | <tr><td>[DELETE]<td>delete the folder with all backups</tr> |
| 207 | </table> |
| 208 | |
| 209 | <a name="Directory_actions"></a> |
| 210 | <h3>Directory actions</h3> |
| 211 | <table> |
| 212 | <tr><td>[list it]<td>list all files in all directories on one page</tr> |
| 213 | <tr><td>[zip it]<td>make a zip archive and offer a download link</tr> |
| 214 | <tr><td>[fex it]<td>fex the files to your email address</tr> |
| 215 | <tr><td>[sync it]<td>start <a href="http://fex.belwue.de/usecases/fexsync.html">fexsync</a> for download</tr> |
| 216 | <tr><td>[stream it]<td>start <a href="http://fex.belwue.de/SEX.html">sexsend</a> for download |
| 217 | (prefered download methode for BIG folders)</tr> |
| 218 | <tr><td>[reload]<td>reload the page</tr> |
| 219 | </table> |
| 220 | |
| 221 | <a name="File_actions"></a> |
| 222 | <h3>File actions</h3> |
| 223 | <table> |
| 224 | <tr><td>[zip it]<td>make a zip archive of the the selected files and offer download link</tr> |
| 225 | <tr><td>[fex it]<td>fex the selected files to your email address</tr> |
| 226 | <tr><td>[copy]<td>copy the selected files to another folder</tr> |
| 227 | <tr><td>[move]<td>move the selected files to another directory</tr> |
| 228 | <tr><td>[rename]<td>rename the selected files (you will be prompted for new names)</tr> |
| 229 | <tr><td>[publish]<td>move the selected files from the upload area to the regular folder directory</tr> |
| 230 | <tr><td>[delete]<td>delete the selected files</tr> |
| 231 | </table> |
| 232 | |
| 233 | <a name="Other_actions"></a> |
| 234 | <h3>Other actions</h3> |
| 235 | <table> |
| 236 | <tr><td>[mirror]<td>mirror (download to server directory) an URL</tr> |
| 237 | </table> |
| 238 | |
| 239 | <a name="Restrictions and limitations"></a> |
| 240 | <h3>Restrictions</h3> |
| 241 | <ul> |
| 242 | <li>a folder name must consist of characters [A-Za-z0-9@_.+-] |
| 243 | <li>DOX cannot handle files or directories with newline character in their names |
| 244 | <li>directory web upload is (only) possible with Google Chrome, but no file |
| 245 | attributes will be conveyed besides the modification date |
| 246 | <li>hard links will be broken between partial updates |
| 247 | <li>transfers of more than 4 GB with a webbrowser are volatile, better use |
| 248 | client fexdox |
| 249 | </ul> |
| 250 | |
| 251 | <a name="Comparison"></a> |
| 252 | <h3>Comparison with <a href="/sharing/">archive sharing</a></h3> |
| 253 | #include "comparison.html" |
| 254 | |
| 255 | <p><hr><p> |
| 256 | Names in UPPERCASE in this document are placeholders, you have to |
| 257 | substitute them with real values! |
| 258 | </BODY> |
| 259 | </HTML> |