Document information

Document ID:1421
Subject:Specifying selection filter in Syncrify
Creation date:7/13/10 12:28 PM
Last modified on:1/25/13 12:35 PM


Selection filters


Selection filters allow users to include and/or exclude files from a backup run. To use selection filters you must be using Syncrify 1.4 or above.

There are two types of filters:
  • Server side
  • Client side
This page talks about the Client side filters. Click here for information about the server side filters. Following steps demonstrate how to enable selection filters on the client side.
  • Start Syncrify client
  • Select the desired profile
  • Highlight a top-level folder name. IMPORTANT: Selection filters can only be specified to a top-level folder but are applied to the entire folder tree. Refer to the image below




  • Click the right mouse button to bring up a pop-up menu and select Selection filter
  • This opens up another screen where you can type a filter.


Rules for specifying filters

  • Selection filters accept wildcard characters just like the dir or ls command on your operating system. An asterisk (*) represent one or more characters and a question mark (?) represents one character. 
  • Multiple rules can be separated by a pipe (|) character.
  • Use a slash (/) at the end to represent a folder


Examples

Example 1 - Backing up only images

*.jpg|*.gif|*.png|*.bmp

This will cause Syncrify to backup only image files. Other files in the folder will be skipped.
Example 2 - Exclusion filter

^*.tmp|^*.bak|^*.cvs|^\$RECYCLE.BIN/

This will copy every file but *.tmp, *.bak, and *.cvs. The last token will exclude a folder called $RECYCLE.BIN. An important information to keep in mind is that a $ is a reserved character. Therefore, you must escape it with a back-slash. Other escape characters are %, [, ], (, ),{, }, +
Example 3 - Exclude folders begining with a DOT.

^.*/

This will exclude folders like .profile , .cvs, etc.


User comments

Posted by Steve Hobs on 1/25/12 11:12 AM

Is it possible to use wild cards or regex to filter out folders as well as files?

Posted by pyc on 10/6/12 7:05 AM

+1 for selection filter in command line.

Posted by Rob on 4/30/16 3:06 PM

The above information does not allow you to filter out reliably. I want to filter out a number of different file types, as well as some sub folders. Any file extension match matches extensions which _start_ with that extension. For example, if I include ^*.o in my selection filter then no files that end with .o* are included (so no .old, .obj, .object, .ost etc.) I got around this by realising that I can mark the end of the filename by using the $ character (so it's regex like but '*' and '.' don't work like a regex). So changing the exclusion specification to ^*.o$ will only exclude files that actually end with .o and still include files that have .o in them before the end of the file. Also the tip for excluding sub folders does not appear to work (I tried excluding files using ^__*/ and all the files in subfolders called __history were included). :o(

Posted by Steve on 9/16/12 2:58 AM

Steve H and all - Has anyone been successful in doing as Steve suggested and using filters to exclude based on folder name pattern matches?

Posted by Clair on 9/16/13 12:14 PM

Nice feature but when I tryed it (exclusion filter), it made the check of folders so slow that it was impossible to use

Posted by Dominique BILLET on 6/16/11 8:25 AM

It is possible to specify selection filter in command line ?

Posted by Frank on 7/14/12 4:10 AM

You write "IMPORTANT: Selection filters can only be applied to top-level folders." which is irritating and wrong. The filter can only be /configured/ at top level folders but it is /applied/ to the whole tree (the top-level folders and all subfolders and files). At least my tests showed that.

Posted by Lucien Dekkers on 11/18/15 12:00 PM

How to exclude folders in the whole tree? I want to exclude the Chrome Cache Folders from all 250 users on our Terminal server.


Add a comment to this document

Do you have a helpful tip related to this document that you'd like to share with other users? Please add it below. Your name and tip will appear at the end of the document text.
Your name:
Your email:
Hide my email address
Verification code:
Enter the verification code you see above more submitting your tip
Tip:Please limit tips to 1000 characters

Navigation

Social Media

Powered by 10MinutesWeb.com