Dateien ausschließen

Seafile allows you to exclude files or folders from synchronization within a shared library.

Note: The procedure described below lists files and folders that should not be synchronized and saves them in a file. If the documents listed there have already been synchronized once and only added to the list of files to be excluded later, only future changes are excluded. However, the files remain available. Files uploaded via the Seafile website will always be synchronized, even if they are included in the list.

To exclude files from synchronization, you must create a text file in the root directory of the library. To create and edit this file, use a text editor (such as Notepad++, vi, Emacs) and not a word processor (such as Word or LibreOffice Writer).

Name the file

seafile-ignore.txt.

In this special file you tell the Seafile server which files in the library should be excluded from synchronization. Each line in the file seafile-ignore.txt either directly identifies a file or folder or represents a search pattern. Other text within the file is marked at the beginning of each line with # as comment character. Blank lines are ignored.

You have the following options for specifying the files and folders to be excluded:

Exclude individual files

To exclude a single file, use its full name:

 

MyDocument.txt

 

Exclude multiple files

To exclude multiple files, write each file on a separate line:

 

MyWebpage.html

MySecondWebpage.html

CityMap.pdf

 

You can also use wildcards to identify files. The usual characters * (replaces as many characters as you like) and ? (replaces exactly one character) are used as placeholders. So write

 

*.html

 

to exclude all files ending with .html and

 

MyDocument-?.odt

 

to exclude all files MyDocument-1.odt to MyDocument-9.odt and also the files MyDocument-A.odt to MyDocument-X.odt.

 

Exclude folder

To exclude an entire folder from synchronization, append a slash / to the folder name:

 

MyFolder/

 

Exclude certain files within a folder

You can combine folders with placeholders. Use

 

MyFolder/*.tmp

 

to exclude all .tmp files within this folder.