--- title: "VBRSelectedFilesMask" description: "Contains a mask that includes files and folders in the backup scope of Veeam Agent backup jobs or excludes them from it. VBRSelectedFilesMask is the base type for the following mask types: VBRSelectedFilesPathMask — a path mask." canonical: "https://helpcenter.veeam.com/docs/vbr/powershell/vbrselectedfilesmask.html" breadcrumb: "Veeam PowerShell Reference > Veeam PowerShell Reference > Veeam PowerShell Types > VBRSelectedFilesMask" dateModified: "2026-11-10" --- # VBRSelectedFilesMask Contains a mask that includes files and folders in the backup scope of Veeam Agent backup jobs or excludes them from it. `VBRSelectedFilesMask` is the base type for the following mask types: - [`VBRSelectedFilesPathMask`](vbrselectedfilespathmask.md) — a path mask. To create this object, run the [`New-VBRSelectedFilesPathMask`](new-vbrselectedfilespathmask.md) cmdlet. - [`VBRSelectedFilesWildcardMask`](vbrselectedfileswildcardmask.md) — a file mask. To create this object, run the [`New-VBRSelectedFilesWildcardMask`](new-vbrselectedfileswildcardmask.md) cmdlet. - [`VBRSelectedFilesLegacyPathMask`](vbrselectedfileslegacypathmask.md) — a legacy path mask for exclusions. To create this object, run the [`New-VBRSelectedFilesLegacyPathMask`](new-vbrselectedfileslegacypathmask.md) cmdlet. The following table shows how the mask types correspond to the mask names in the Veeam Backup & Replication console, Web UI and REST API.
|
PowerShell Type |
Name in Console |
Name in Web UI |
Type in REST API |
|---|---|---|---|
|
VBRSelectedFilesPathMask |
Object by path |
Objects by Path |
Path |
|
VBRSelectedFilesWildcardMask |
Files by mask |
Files by Mask |
Wildcard |
|
VBRSelectedFilesLegacyPathMask |
Folder by path |
Folders by Path |
Legacy |