Knowledgebase: Tips and tricks
Using filter expressions
Posted by Sven Koester on 18 April 2007 14:20
Filters are very powerful helpers when creating archives or backups. Filters are refered to by their name in Archive, Backup and/or Synchronize Plans.

Include filters define files and directories which should be included in the selection. Without definition, all files are included.

Exclude filters define files to be skipped from the selection. Without definition, no files are excluded.

When combining the two filters, include filters are processed first, followed by exclude filters.

Filters of type file
File filters are applied on file names. A type file  filter with the expression ends with .bak will match all files with the extension .bak, regardles where and how many files are matched.

Filters of type directory
Directory filters are applied on directory names. They are very similar to filenames with one exception: PresSTORE assumes that all files below the matched directory are matched as well. Note that in case a size is passed as filter expression for directories, it is applied on the file holding the directory contents; this is usually not what you really wanted. The size does not reflect the size of the contained files in the directory.

Filters of type path
This is the most powerful filter variant. The expression is applied to the full path of the destination. Note that this is not a wildcard expression, as used to identify multiple files, but instead a lexicographical comparison applied on the full path.
A path type filter with the expression ends with .bak will match all files with the extension .bak. It will not match diretories ending with .bak, because files in that directories that do not end with .bak will not match. Thus, in order to find special directories or subtrees, specify that the path contains an expression.

Examples:
  • To exclude the directory /Volumes, specify a path type filter where the expression starts with /Volumes
  • To exclude all directories Volumes, specify a directory type filter where the expression equals Volumes
  • To pick up all files ending in .jpg, specify a a file type filter where the expression ends with .jpg

Filters can be created in expert mode, too. The expert mode allows you to add options as understood by the command find to the filter. For expert options please refer to the man page of the command find, e.g. on the web at http://unixhelp.ed.ac.uk/CGI/man-cgi?find
(926 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).

ERROR: This domain name (portal.archiware.com), does not match the domain name in the license key file support.archiware.com.

For assistance with your license, please contact the Kayako support team: https://support.kayako.com