User Tools

Site Tools


fileservices:seafile

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
fileservices:seafile [2013/10/24 13:20]
tschulz [Enable SSL through Apache2 on port 443]
fileservices:seafile [2013/10/25 14:51]
tschulz
Line 135: Line 135:
 #Listen 80 #Listen 80
 ... ...
 +</​file>​
 +
 +===== Exclude Files =====
 +Sometimes you don't want to sync some files or folders inside a library. To achieve this, create a **seafile-ignore.txt** file in the root folder of a library. This special file specifies the files and folders that Seafile should not sync. Each line in a **ignore.txt** file specifies a pattern. The following pattern format are supported.
 +
 +  - A blank line matches no files.
 +  - A line starting with # serves as a comment.
 +  - Seafile supports wildcards in the pattern. For example, "​foo/​*"​ matches "​foo/​1"​ and "​foo/​hello"​. "​foo/?"​ matches "​foo/​1"​ but not "​foo/​hello"​. Note that the wildcard character * recursively matches all the paths under a folder. For instance, "​foo/​*.html"​ matches "​foo/​a.html"​ and "​foo/​templates/​b.html"​.
 +  - If the pattern ends with a slash, it would only match a folder. In other words, foo/ will match a folder "​foo"​ and paths underneath it, but will not match a regular file or a symbolic link "​foo"​.
 +  - If a pattern doesn'​t end with a slash or a wildcard, it would not match a folder. For example, "​foo"​ can only match regular file "​foo"​ or a symbolic link; while "​foo/"​ and "​foo*"​ match a folder and paths under it.
 +
 +<file txt seafile-ignore.txt>​
 +# a regular file
 +test-file
 +
 +# a dir
 +test-dir/
 +
 +# wildcard *
 +test-star1/​*
 +test-star2/​*.html
 +
 +# wildcard ?
 +test-qu1/?​.html
 +test-qu2/?/
 </​file>​ </​file>​
fileservices/seafile.txt · Last modified: 2013/10/25 14:52 by tschulz