Specifying Folders to Back Up

The Objects step of the wizard is available if you have selected the File-level backup option at the Backup Mode step of the wizard.

In the file-level backup mode, you can create two types of backups:

  • File-level backup that includes individual folders on your computer.
  • Hybrid backup that contains individual folders and specific volumes of your computer.

At this step of the wizard, you must specify the backup scope by defining what folders with files or entire volumes you want to include in the backup. The specified backup scope settings will apply to all computers that are added to the backup policy. If a specified object does not exist on one or more computers in the policy, the policy will skip such object on those computers and back up existing ones.

To specify the backup scope, select check boxes next to the necessary objects. You can include the following data in the backup:

  • Operating system — data related to the OS installed on a protected computer. To learn more, see the System State Data Backup section in the Veeam Agent for Microsoft Windows User Guide.
  • Personal files — data related to user profiles. With this option enabled, Veeam Backup & Replication will include in the backup scope settings and data related to Veeam Agent computer user profiles. To customize which categories to include, expand the drop-down list below the check box and select or clear the necessary categories: Desktop, Documents, Pictures, Video, Music, Favorites, Downloads, or Other files. To learn more, see the Personal Data Backup section in the Veeam Agent for Microsoft Windows User Guide.
  • Individual file system objects — folders, mount points, and volumes of a protected computer.

To specify individual folders to back up:

  1. Select the The following file system objects check box and click Add.
  2. In the window that opens, type the path to a folder, mount point folder, or volume that you want to back up, for example, D:\Reports or D:\, and click OK. In the web UI, in the Add File System Objects window, click Add, type the path in the Path to file system object field and click Add. Then click Add at the bottom of the Add File System Objects window.

To specify the backup scope, you can use system environment variables such as %ProgramFiles% or %WinDir%. This may be useful, for example, in case computers added to the backup policy run different versions of Microsoft Windows OSes, and actual paths to directories that contain data of the same type differ on these computers.

Consider the following:

  • You can use only system environment variables — variables defined for the Local System account on computers added to the backup policy. User-dependent environment variables are not supported.
  • Environment variables that contain multiple values (such as the %PATH% variable) are not supported.
  • Environment variables that contain other environment variables are not supported.
  1. Repeat steps 1–2 for all items that you want to back up.
Specifying Folders to Back Up

Tabs

Web UI

Specify Folders to Back Up

Console

Specifying Folders to Back Up

NOTE

Consider the following:

  • If you include a system volume in the file-level backup, Veeam Agent does not automatically include the System Reserved/UEFI or other system partitions in the backup. These volumes are automatically included in the backup only if you select the Operating system option to specify the backup scope.
  • Veeam Agent automatically adds to the list of exclusions the following Microsoft Windows objects for all computer users: temporary files folder, Recycle Bin, Microsoft Windows pagefile, hibernate file and VSS snapshot files from the System Volume Information folder.
  • You can exclude Microsoft OneDrive folders from the backup scope in the window where you configure file filters.

Configuring Filters

To fine-tune the scope of file-level backup, you can configure include and exclude filters. You can filter files and folders by path and files by name mask. Paths and file name masks can include wildcard characters. The filters apply to all computers in the backup policy. Before you configure filters, review File Filter Considerations and Limitations.

You can add filters of the following types:

Configuring Filters

Tabs

Web UI

  • Files by Mask (file mask filters) — include or exclude files by file name or file name mask. Masks apply to files throughout the backup scope. If you specify include masks, only matching files are backed up. Files that match exclude masks are not backed up.
  • Objects by Path (path filters) — include or exclude files and folders by path.
  • Folders by Path (legacy folder filters) — exclude folders by path.

NOTE

This type of filter is available for exclude filters only and is intended for backward compatibility: if a job had filters for folder paths before the upgrade, these filters are kept as Folders by Path filters. To exclude a folder in a new filter, use Objects by Path instead, which is more flexible and supports wildcard characters.

Console

  • Files by mask (file mask filters) — include or exclude files by file name or file name mask. Masks apply to files throughout the backup scope. If you specify include masks, only matching files are backed up. Files that match exclude masks are not backed up.
  • Object by path (path filters) — include or exclude files and folders by path.
  • Folder by path (legacy folder filters) — exclude folders by path.

NOTE

This type of filter is available for exclude filters only and is intended for backward compatibility: if a job had filters for folder paths before the upgrade, these filters are kept as Folder by path filters. To exclude a folder in a new filter, use Object by path instead, which is more flexible and supports wildcard characters.

The format of the filter depends on its type:

  • File mask filters — specify a file name or file name mask, for example, Report.pdf, *.docx or *filename*. Do not specify a path. You can use * to match any number of characters and ? to match exactly one character.
  • Path filters — specify an absolute path that starts with a drive letter, for example, C:\Users\Public\Documents, or a system environment variable preceded by a backslash, for example, \%ProgramData%. You can use the *, ** and ? wildcard characters in the path. To match any number of nested folder levels, including none, use a double asterisk (**) as a path element, for example, D:\Projects\**\Archive. Do not specify a file name mask only, for example, *.img. Use a file mask filter for such masks.
  • Legacy folder filters — specify an absolute path to a folder, for example, D:\Reports\OldReports, or a system environment variable preceded by a backslash. To exclude all folders whose names start with the same characters, end the path with *, for example, D:\Reports\Old*. You can use wildcard characters only in the last element of the path. Only folders are excluded, files with matching names are backed up.
  • A filter of any type must not be empty and must not duplicate a filter that already exists in the Include masks or Exclude masks list.
Configuring Filters

Tabs

Web UI

To configure a filter:

  1. At the Objects step of the wizard, click Configure file filters.
  2. In the Include masks or Exclude masks section, click Add and select the type of filter that you want to add.
  3. In the window that opens, specify the filter and click Add.
  4. Repeat steps 2–3 for each filter that you want to add.
  5. Click Apply.

To reuse the filters in other backup jobs, you can export them to an XML file and import them from the file in the File Filters window:

  • To export the filters, click Export. Your browser downloads an XML file with the include and exclude filters.
  • To import the filters, click Import, specify the XML file with the filters in the Path to file field and click Import. The imported filters overwrite the filters that are currently listed in the window.

Configure Filters

Console

To configure a filter:

  1. At the Objects step of the wizard, click Advanced.
  2. In the Include and exclude masks window, in the Include masks or Exclude masks section, click Add and select the type of filter that you want to add: Files by mask, Object by path or Folder by path.
  3. In the window that opens, specify the filter and click OK.
  4. Repeat steps 2–3 for each filter that you want to add.
  5. Click OK.

To reuse the filters in other backup jobs, you can export them to a file and import them from the file in the Include and exclude masks window:

  • To export the filters, click the Export these filters link.
  • To import the filters, click the import existing list link and select the file with the filters.

Configure Filters

TIP

In path and legacy folder filters, you can use system environment variables. Type the backslash (\) before the variable, for example, \%appdata%.

Consider the following:

  • You can use only system environment variables — variables defined for the Local System account on computers added to the backup policy. User environment variables are not supported. For example, if you specify the \%appdata% exclude filter, Veeam Agent excludes the C:\Windows\system32\config\systemprofile\AppData\Roaming folder from the backup. Application data folders of other user accounts (for example, C:\Users\Administrator\AppData\Roaming) are not excluded.
  • Environment variables that contain multiple values or other environment variables are not supported.

Additionally, you can specify how Veeam Agent for Microsoft Windows will process Microsoft OneDrive folders. Select the Exclude Microsoft OneDrive folders option to exclude Microsoft OneDrive folders and their content from the backup scope.

Consider the following limitations:

  • Veeam Agent excludes Microsoft OneDrive folders only in file-level backups. If you include an entire volume in the backup, Veeam Agent will not exclude Microsoft OneDrive folders from this volume.
  • Due to the OS limitations, the Exclude Microsoft OneDrive folders option behaves properly only on Veeam Agent computers running Microsoft Windows 10 and Microsoft Windows 11. If your Veeam Agent computers run other OS versions, we recommend to exclude Microsoft OneDrive folders manually.

File Filter Considerations and Limitations

Review the following considerations and limitations of file filters:

  • Before you specify a folder to exclude, you must first include a higher-level parent folder in the backup scope. For example, if you want to back up the D:\Reports folder except the D:\Reports\OldReports folder, you must include D:\Reports in the backup scope and add D:\Reports\OldReports to the Exclude masks list as a path filter.
  • Paths and masks in filters are not case-sensitive.
  • Wildcard characters are supported in file mask and path filters. File masks support * and ?, and paths support *, ** and ?. Any other characters, for example, square brackets, are treated literally. In legacy folder filters, you can use wildcard characters only in the last element of the path.
  • If include and exclude filters overlap, Veeam Agent resolves them as follows:
  • If a folder that you add to the backup scope at the Objects step is also added to the legacy folder exclude filter, the exclude filter has no effect: the folder is backed up with its contents.
  • If a folder that you add to the backup scope at the Objects step is also added to the path exclude filter, the exclude filter wins: the folder is backed up as an empty folder, without its contents. For example, if D:\Reports\Archive is both in the backup scope and in the exclude filter, Veeam Agent backs up the D:\Reports\Archive folder itself, but not the files and subfolders inside it.
  • If a file matches both an include mask and an exclude mask, the exclude mask is applied to the results of the include mask. Veeam Agent first builds a list of files that match the include mask, and then removes from this list the files that also match the exclude mask.
  • Filters are applied only to objects inside the backup scope, in the following order: legacy folder exclude filters, path include filters, path exclude filters, file mask include filters, file mask exclude filters.
  • If an exclude path pattern is more general than an included path or a folder in the backup scope and covers it, the exclude filter wins. For example, if you add the C:\Logs\Main folder to the backup scope when you select objects and exclude the C:\Logs\** object by path, the C:\Logs\Main folder is not backed up.
  • Path filters match objects as follows:
  • You can specify a plain path or a path that contains wildcard characters. This applies to both include and exclude filters.
  • In a file or folder name, use * to match any number of characters and ? to match exactly one character. These wildcard characters do not match the path separator (\). For example, file*.log matches file-10062026.log, and file?.log matches file1.log.
  • A single asterisk (*) used as a separate path element matches exactly one folder level. A double asterisk (**) matches any number of nested folder levels, from zero to unlimited. For example, D:\Dir1\*\ExcludeMe matches only D:\Dir1\<folder>\ExcludeMe, while D:\Dir1\**\ExcludeMe also matches D:\Dir1\ExcludeMe and the objects at all deeper levels.
  • Trailing path separators are ignored. A path filter applies to both files and folders that match the path.
  • Filters have the following limitations:
  • Symbolic links are not followed. A symbolic link is backed up as a link, and path filters do not apply to the objects that the link points to.
  • If you include an entire volume in the backup scope, Veeam Agent backs up this volume at the volume level. Path and file mask filters are not applied to such a volume: you can only exclude folders that reside on it with Folder by path filters. If the backup job has path filters for such a volume, the job session shows an informational message that these path patterns were skipped.
  • Folders excluded from a volume backed up at the volume level are excluded from the VSS snapshot. To learn more, see this Microsoft article.
  • You cannot apply filters to files and folders that reside on a mount point.

Page updated 2026-11-27

Page content applies to build 13.2.0.193