How-to: Exclude Files from Sync - von Sync Ausschließen

Practical instruction and advice on how to take advantage of TeamDrive's features - Praktische Anleitung und Ratschläge zur Nutzung der Vorteile von TeamDrive.

How-to: Exclude Files from Sync - von Sync Ausschließen

Postby Kenneth » 07 Feb 2014, 15:32

Top: English
Darunter: Deutsch

Info about File Filtering on TeamDrive

When editing the TeamDrive filter file it is important that you use a standard text editor. We recommend using TextEdit (OS X) or NotePad (Windows).
WordPad (Windows), for instance, will add text formatting which could possibly cause disruptions when applying the filter.

When saving the file it is important to save it as a UTF-8 encoded file and to not add a ".txt" extension:

On Windows these options can be found during the "save as" process. Under 'Save as type' select 'All Files'.
Under 'Encoding' select UTF-8

On OS X these options can be found under the preferences pane. Uncheck the box "Add '.txt' extension to plain text files".
One the "Open and Save" tab and under the section "Plain Text File Encoding" > "Saving Files" select "Unicode (UTF-8).


"teamdrive.fsfilter" is the standard filter file. The file can be found in
the "user shared path":

Windows: "C:/ProgramData/TeamDrive/"
(If the 'ProgramData' folder is not visible, search for the folder using,
"%programdata%")
On Windows XP there is, however, no shortcut to this folder. You have to manually navigate to this folder. The folder is also hidden. C:/Documents and Settings/All Users/ApplicationData/TeamDrive. You can enable hidden folders in the "Folder Options" settings. This can be found in the "Control Panel". Start > Settings > Control Panel > Folder Options > View > Hidden files and folders > Show hidden files, folders and drives.

Linux: "/etc/"

Mac OS X: "/Users/Shared/"

If the "teamdrive.fsfilter" has been moved from its default location,
the new location of the file needs to be defined in the "teamdrive.ini" file.

The "teamdrive.ini" file can also be found in the "user shared path".

To define the new location of the "teamdrive.fsfilter" file use:

fs-filter-file=<Path><Name>



The filter functions are based on Wildcard Matching.
(the ability to identify a group of files by using wildcards)

Any character represents itself apart from those mentioned below. Thus c matches the character c.

?: Matches any single character. It is the same as . in full regexps.

*: Matches zero or more of any characters. It is the same as .* in full regexps.

[...]: Sets of characters can be represented in square brackets, similar to full regexps. Within the character class, like outside, the backslash has no special meaning.


#: Denotes that everything follwing is treated as a comment.

Examples:


Filtering Data

#Filter all "newname.txt" files

*/newname.txt



Filtering based on file ending

#Filter all ".lock" files

*.lock



Filtering Sub-Folders

#Filter Contents of Folders
#ignore 'newfolder' folders and files

*/newfolder
*/newfolder/*

To filter contents of folders, 2 filter expressions have to be written.
The first filter excludes all folders called "newfolder".
The second filter excludes all the contents of folders called "newfolder".
Kenneth
 
Posts: 1277
Joined: 29 Aug 2012, 15:11

Dateien von der Synchronisation Ausschließen

Postby Kenneth » 07 Feb 2014, 15:33

Hier eine kurze Beschreibung der FSFilter Dateien.

Die Standard Filter-Datei hat den Namen "teamdrive.fsfilter" und liegt
im "User Shared Path" :

Windows : "C:/ProgramData/TeamDrive/"
(Windows XP - C:\Dokumente und Einstellungen\All Users\Anwendungsdaten\TeamDrive
"Anwendungsdaten" ist versteckt. Sie müssen in "Odneroptionen", "Alle Dateien und Ordner anzeigen" auswählen. Sie können "Ordneroptionen in "Systemsteuerung" finden. Start - Einstellungen - Systemsteuerung - Ordneroptionen - Ansicht - Versteckte Dateien und Ordner - Alle Dateien und Ordner anzeigen.)

Linux: "/etc/"
Mac: "/Users/Shared/"

Über die Settings Datei "teamdrive.ini" (das ist die Datei für globale
settings durch z.B. Administratoren) die standardmässig auch im "User
Shared Path" liegt kann das konfiguriert werden:

fs-filter-file=<Pfad><Name>


Die Filter werden als Wildcard's mit jeweils einer Filterdefinition pro
Zeile angegeben.

Wildcard bedeutet:

Jedes Zeichen steht für das Zeichen selbst (matched genau auf das
Zeichen)
? Matched auf ein beliebeiges Zeichen
* Mathed auf keins oder beliebig viele Zeichen
[...] Zeichen in eckigen Klammern werden als Menge betrachtet

Die Wildcard Zeichen ?, *, [, ] können nicht escaped werden (im Moment)

Zeilen die mit '#' beginnen werden als Kommentar betrachtet und
ignoriert.

Hier ein paar Beispiele:

# ---------------------------
# 1) Verzeichnisse
# ---------------------------
# filtert das Verzeichnis
*/newfolder

# filtert den Inhalt (alles innerhalb) des Verzeichnisses
*/newfolder/*

# ---------------------------
# 2) Dateien
# ---------------------------
#filtert alle Dateien "desktop.ini"
*/desktop.ini

# filtert alle open office temp Dateien "~$test.doc"
*/~$*.???

# ---------------------------
# 3) Dateiendungen
# ---------------------------
# filtert alle Dateien mit Dateiendung ".lock"
*.lock
Kenneth
 
Posts: 1277
Joined: 29 Aug 2012, 15:11

Re: How-to: Filtering Files on TeamDrive 3

Postby WSteigi » 23 Feb 2014, 16:37

Hi Kenneth,

danke für Deine Anleitung. Hat mir sehr geholfen.
Auch wenn das Eintragen der Datei x:\pfad\teamdrive.fsfilter in die teamdrive.ini (ist leer) in der angegebenen Form aus irgend einem Grund nicht funktioniert hat. Da beide Dateien im Default-Verzeichnis C:\ProgramData\TeamDrive3 liegen und das für mich ok ist, habe ich das Problem nicht weiter verfolgt.

Tschö,
WSteigi
WSteigi
 
Posts: 2
Joined: 12 Sep 2009, 16:22

Re: How-to: Filtering Files on TeamDrive 3

Postby dclong » 01 Apr 2014, 19:50

Does TeamDrive 3 support local filter configuration files? If we place a ".teamdrive.fsfilter" file in the home directory or "teamdrive.fsfilter" in the ".teamdrive" folder in the home directory, will it override "/etc/teamdrive.fsfilter"?
dclong
 
Posts: 5
Joined: 01 Apr 2014, 19:43

Re: How-to: Filtering Files on TeamDrive 3

Postby Kenneth » 07 Apr 2014, 14:23

I'm not sure I fully understand what you are asking.

If you want to create a filter file and place it where you want, you just need to indicate this location in the "teamdrive.ini" file (If that's what you're asking).
Kenneth
 
Posts: 1277
Joined: 29 Aug 2012, 15:11

Re: How-to: Filtering Files on TeamDrive 3

Postby dclong » 07 Apr 2014, 20:49

Yes, I know we can specify an alternative path for the filter file in "teamdrive.ini". However, most Linux applications support hierarchical configurations. The configuration file in /etc is the "system-wide" configuration (i.e., for all users). While at the same time, users can have their "local" configuration files in their home directory. The local configuration override the system-wide configuration if both exist. I want to know whether TeamDrive support this kinds of configuration or not. If not, it's nice to have this feature as it's the standard way in Linux.

Another thing, I found that TeamDrive 3 ignores symbolic links in Linux (I'm using Linux Mint Debian Edition 16). Not sure anyone has filed this bug or not.

Kenneth wrote:I'm not sure I fully understand what you are asking.

If you want to create a filter file and place it where you want, you just need to indicate this location in the "teamdrive.ini" file (If that's what you're asking).
dclong
 
Posts: 5
Joined: 01 Apr 2014, 19:43

Re: How-to: Filtering Files on TeamDrive 3

Postby Kenneth » 08 Apr 2014, 17:52

The filter settings are global settings for that machine. Users cannot "locally" override them from their user accounts.

There is another post about symbolic links. TeamDrive does not sync symbolic links.
Kenneth
 
Posts: 1277
Joined: 29 Aug 2012, 15:11

Re: How-to: Filtering Files on TeamDrive 3

Postby Redbeard » 09 Sep 2014, 16:19

Hello,
How would you go about doing this with the portable version of TeamDrive? I don't see a teamdrive.ini.

Thanks
Redbeard
 
Posts: 5
Joined: 09 Sep 2014, 16:17

Re: How-to: Filtering Files on TeamDrive 3

Postby Kenneth » 15 Sep 2014, 12:35

C:\Users\*Username*\*TD3 Portable Data Folder*\TeamDrive3Portable\Data\settings\TeamDrive3PortableSettings.ini
Kenneth
 
Posts: 1277
Joined: 29 Aug 2012, 15:11

Re: How-to: Filtering Files on TeamDrive 3

Postby Redbeard » 16 Sep 2014, 00:56

Thank you, but I'm still having trouble.

TeamDrive3PortableSettings.ini:
Code: Select all
[TeamDrive3PortableSettings]
LastDrive=C:
fs-filter-file=C:\Storage\teamdrive.fsfilter


teamdrive.fsfilter:
Code: Select all
*\Records
*\Records\*


The Records subfolder still shows. I'm using Windows 7. What am I doing wrong?
Redbeard
 
Posts: 5
Joined: 09 Sep 2014, 16:17

Next

Return to How-tos - Kurze Anleitungen

Who is online

Users browsing this forum: No registered users and 4 guests