New-VBRSelectedFilesPathMask
Short Description
Defines a path mask for the backup scope of Veeam Agent backup jobs.
Product Edition: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
New-VBRSelectedFilesPathMask -Path <String> [<CommonParameters>] |
Detailed Description
This cmdlet creates the VBRSelectedFilesPathMask object. This object defines a path mask that you can use to include files and folders in the backup scope of a Veeam Agent backup job or to exclude them from it. The mask accepts full paths, the * and ? wildcard characters and the ** recursive pattern. You can use path masks for Veeam Agent backup jobs that back up Windows, Linux, macOS and Unix computers. The path format depends on the OS, see the Path parameter.
To apply the mask, set it as the InclusionMask or ExclusionMask parameter value of the New-VBRSelectedFilesBackupOptionsDefines backup scope settings for Veeam Agent backup jobs. or Set-VBRSelectedFilesBackupOptionsModifies the backup scope settings for Veeam Agent backup jobs. cmdlet.
Note: If the backup scope of a job that backs up a Windows computer includes an entire volume, Veeam Agent for Microsoft Windows backs up this volume at the volume level and does not apply path masks to it. The job session shows an informational message that these path patterns were skipped.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Path |
Specifies the full path to the files or folders that you want to include in the backup scope or exclude from it. The path format depends on the OS of the protected computer:
You can use the
At the end of a mask,
In the middle of a mask, |
|
True |
Named |
True (ByPropertyName, ByValue) |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
The cmdlet returns the VBRSelectedFilesPathMask object that defines a path mask for the backup scope.
Examples
Example 1. Excluding Folders from Backup Scope Using Path Mask (Windows)
|
This example shows how to exclude the Downloads folders of all user profiles from the backup scope of a Veeam Agent backup job that backs up a Windows computer.
Perform the following steps:
|
Example 2. Including Files in Backup Scope Using Recursive Path Mask (Linux)
|
This example shows how to back up only the LOG files from the
Perform the following steps:
|
Related Commands
New-VBRSelectedFilesBackupOptionsDefines backup scope settings for Veeam Agent backup jobs.Set-VBRSelectedFilesBackupOptionsModifies the backup scope settings for Veeam Agent backup jobs.