How to Use Filters to Define File-Level Backup Scope
Veeam Agent for Microsoft Windows provides advanced filtering capabilities that allow you to select specific data for a file-level backup. You can include and exclude files and folders from the backup job scope by using include and exclude masks. This topic demonstrates several basic scenarios you may want to implement in your infrastructure.
Before you configure filters for the backup, consider the following:
Available file filter settings depend on the operation mode of Veeam Agent — standalone or managed. To learn more about setting up file filters for backup jobs when Veeam Agent operates in the managed mode, see the Using Filters in Backup Jobs for Windows Computers in the Veeam Agent Management Guide.
- All backup scenarios in this topic are performed in the file-level backup mode.
A file-level backup job may contain entire volumes and individual folders from other volumes (this is referred to as hybrid backup job) — entire volumes are processed using volume-level backup mode while specific folders from other volumes are processed using file-level backup mode. In this case, file filters only work when the file-level backup mode is used. If you select an entire volume — for example, C:\, no filtering of files on that volume can occur.
- When you specify include masks, the backup will contain only the data that matches these masking criteria within the backup scope. When you specify exclude masks, the backup will contain all data from the backup scope except the data that matches these masking criteria.
Setting Up File Filters for Backup Scope
To specify file filters when you create a new job, do the following:
In this example, the following objects are selected:
- Including a Folder and Excluding a Subfolder.
- Including or Excluding Specific Files.
- Including or Excluding Files by File Type.
- Including or Excluding Files Whose Names Contain a Specific Sequence of Characters.
- Including or Excluding Files Named According to a Convention.
Including a Folder and Excluding a Subfolder
- In the The following file system objects list, select the 2022 folder.
- Expand the selected folder node and clear the check box next to the ExcludeThisFolder subfolder:
Including or Excluding Specific Files
As a result, the backup will contain only the Image_05.bmp file from the specified backup scope.
Including or Excluding Files by File Type
In this example, we will back up only the text files in the .txt format. To do this:
As a result, the backup will contain all text files in the .txt format from the backup scope.
|
You can combine include and exclude masks as needed. For example, you can include all .pdf files into the backup scope and exclude the ones that contain the word draft in their name by specifying *.pdf in the include mask and *draft* in the exclude mask. |
Including or Excluding Files Whose Names Contain a Specific Sequence of Characters
Including or Excluding Files Named According to a Convention