When you include and exclude folders in a Windows, UNC, Linux, UNIX or NFS backup job, the folder’s subdirectories and files are also included or excluded by default.
If you only want to back up some subdirectories or files in a folder, you can add filters to the inclusion record. For example, you could add a filter so that files in a folder are only backed up if they have the .doc or .docx extension.
If you only want to exclude some subdirectories or files in a folder from a backup job, you can add filters to the exclusion record. For example, you could add a filter so that files in a folder are only excluded from the backup if they have the .exe extension.
If a policy is assigned to a computer, you can add filters from the policy to a folder inclusion or exclusion record.
Filters in a backup job are applied when the job runs. New subdirectories and files that match the filters are automatically backed up or excluded when the job runs.
To filter subdirectories and files in a backup job:
1. When creating or editing a Windows, UNC, Linux, UNIX or NFS backup job, view the Backup Set box.
2. If editable
fields do not appear for a folder inclusion or exclusion record where you want
to filter subdirectories and files, click the Edit button in the
folder row.
3. In the Backup Set box, for each included folder where you want to include specific subdirectories or files, do one or more of the following:
• To include specific subdirectories in the backup job, in the Folders Filter field, enter the names of subdirectories to include. Separate multiple names with commas, and use asterisks (*) as wildcard characters. For example, to only include subdirectories in a backup if their names end with “-current” or start with “2015”, enter the following filter: *-current, 2015*
Note: Asterisks (*) are the only supported wildcards in filter fields.
• To include specific files in the backup job, in the Files Filter field, enter the names of files to include in the backup. Separate multiple names with commas, and use asterisks (*) as wildcard characters. For example, to only include files in a backup if they have the .doc or .docx extension, enter the following filter: *.doc, *.docx
Note: Asterisks (*) are the only supported wildcards in filter fields.
• If a policy is assigned to the computer, to apply filters from the policy
to the folder inclusion record, click the Apply Policy Filters button.
• To back up the specified folder, but not its subdirectories, clear the Recursive check box.
• To back up the folder’s subdirectories, select the Recursive check box.
4. In the Backup Set box, for each excluded folder where you want to exclude specific subdirectories or files, do one or more of the following:
• To exclude specific subdirectories from the backup job, in the Folders Filter field, enter the names of subdirectories to exclude. Separate multiple names with commas, and use asterisks (*) as wildcard characters. For example, to only exclude subdirectories from a backup if their names end with “-old” or start with “2001”, enter the following filter: *-old, 2001*
Note: Asterisks (*) are the only supported wildcards in filter fields.
• To exclude specific files from the backup job, in the Files Filter field, enter the names of files to exclude. Separate multiple names with commas, and use asterisks (*) as wildcard characters. For example, to only exclude files from a backup if they have the .exe or .dll extension, enter the following filter: *.exe, *.dll
Note: Asterisks (*) are the only supported wildcards in filter fields.
• If a policy is assigned to the computer, to apply filters from the policy
to the folder exclusion record, click the Apply Policy Filters button.
• To exclude the specified folder, but not its subdirectories, clear the Recursive check box.
• To exclude the folder’s subdirectories, select the Recursive check box.
1. Click Apply Now to consolidate and simplify records in the Backup Set box, if changes need to be applied.
2. Click Create Job or Save.