Section parameters: "Files" tab
This tab allows to set parameters determining the files to include in the section backup. These parameters are data directory and mask template.
Data directory field sets the directory containing files for the section backup.
There are two modes to enter the mask template: simple and advanced. You can switch modes by pressing button "Simple mode" or "Advanced mode".
Note. Advanced mode allows to fine tune backup template and offers more detailed options than the simple mode. Thus switching modes may result in losing certain settings.
"Template" button allows to select a section template from the list of predetermined templates.
Simple mode contains the following options:
Masks determining the files to include into backup. This masks list should contain at least one mask.
Masks determining the files to exclude from backup. This masks list may be empty.
checkbox "Include all subdirectories". If the checkbox is set all subdirectories of the data directory will be included into backup. If the checkbox is not set backup will contain only directories specified in the field below.
List of subdirectories to include in backup. To put certain directories into backup you should unset "Include all subdirectories" checkbox and specify subdirectories separated by semicolon. If the checkbox is not set and the list of subdirectories is empty backups will contain only the files from the data directory.
Method of file selection in subdirectories. You can select either the 'By specified masks' mode (includes all files which meet the specified masks) or the 'All files' mode (includes all files in subdirectories).
To add new mask to a masks list press the '+' button in the upper part of the list. To delete a mask select it and press the 'x' button.
Example. Suppose we have subdirectories 'Bob', 'Helen' and 'Jimmy' in the data directory. The following variants are possible:
checkbox "Include all subdirectories" is set: all files in the data directory and all subdirectories with all files will be included.
checkbox "Include all subdirectories" is not set, the field below contains "Bob;Helen". Files from the data directory and from the 'Bob' and 'Helen' subdirectories will be included, files from directory named 'Jimmy' will be excluded.
checkbox "Include all subdirectories" is not set, the field is empty. Only the files from the data directory will be included..
Template in advanced mode is a set of rules.
Each rule contains:
List of directories separated by semicolons to apply current rule. Data directory is referred to as dot ("." or ".\").
List of masks separated by semicolons determining files to include in backup
List of masks separated by semicolons determining files to exclude from backup.
Scope of the rule: apply the rule to specified directories only (will not affect their subdirectories) or recursively (the rule will recursively affect subdirectories of the ones listed in the field).
Buttons for adding, cloning, deleting rules and for adding a subdirectory to a rule are situated above the rules list.
To edit fields "Subdirectories", "Include" and "Exclude" double-click the field or switch to the field and press [F2].
When finished press [Enter] to apply changes or [Esc] to discard changes.
Below rules list there is a field for global exlusion masks (separated by semicolons) and a checkbox determining whether global exlusions will be applied recursively or to the data directory only.
Every rule forms a list of backup files that are located in proper subdirectories, meet the inclusion criteria do not meet the exclusion criteria (considering the sphere of application set in the 'Apply' field).
These lists are merged into a single list for all rules.
Files that meet the masks of global exlusion are striken off the list (considering the sphere of application of the masks).
Example. Suppose we need to include all files in the data directory except file "temp.txt", all files with "doc" and "txt" types from "Reports" subdirectory but exclude files with name "account" and any type. Besides, zip and rar archives may appear in the data directory or its subdirectories - we do not need the archives in the backup.
We should:
Create a rule specifying data directory ("."), inclusion mask "*.*", exlusion mask "temp.txt", scope - "to specified directories".
Create a rule specifying 'Reports' subdirectory, inclusion masks "*.doc; *.txt", empty exlusion mask list, scope - "recursively".
Global exclusion field should contain masks "account.*; *.zip; *.rar", the checkbox "recursively" should be set.
see also: Creating and setting up sections.