Set-VBRObjectStorageBackupJobObject
Short Description
Modifies settings of objects that will be added to the object storage backup job.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Set-VBRObjectStorageBackupJobObject -JobObject <VBRObjectStorageBackupJobObject> [-InclusionMask <VBRObjectStorageBackupMask[]>] [-ExclusionMask <VBRObjectStorageBackupMask[]>] [<CommonParameters>] |
Detailed Description
This cmdlet modifies settings of objects that will be added to the object storage backup job.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
ExclusionMask |
Specifies a file mask for objects that you do not want to add to the object storage backup job. The cmdlet will not back up these objects.
Accepts the
|
|
False |
Named |
False |
|
InclusionMask |
Specifies a file mask for objects that you want to add to the object storage backup job. The cmdlet will back up only objects specified in this file mask.
Accepts the |
|
False |
Named |
False |
|
JobObject |
Specifies the settings of objects that will be added to the object storage backup job. The cmdlet will modify these settings.
Accepts the |
|
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 VBRObjectStorageBackupJobObject object that contains settings of objects that will be added to the object storage backup job.
Examples
Defining Objects to Exclude from Object Storage Backup Job
This example shows how to exclude the Path Reports/.pdf from object storage backup job.
|
$serv = Get-VBRUnstructuredServer -Name "Azure OS" $object = New-VBRObjectStorageBackupJobObject -Server $serv -Container "Monthly Backups" -Path "Reports" $ExclusionMask = New-VBRObjectStorageBackupContainerPathMask -Container "Monthly Backups" -Path Reports/.pdf' Set-VBRObjectStorageBackupJobObject -JobObject $object -ExclusionMask $ExclusionMask |
Perform the following steps:
- Run the
Get-VBRUnstructuredServerReturns unstructured data sources added to the inventory. cmdlet. Specify theNameparameter value. Save the result to the$servvariable. - Run the
New-VBRObjectStorageBackupJobObjectDefines a scope of objects that will be added to the object storage backup job. cmdlet. Specify theServer,Containerand thePathparameter values. Save the result to the$objectvariable. - Run the
New-VBRObjectStorageBackupContainerPathMaskDefines an exclusion mask for objects in object storage. cmdlet. Specify theContainerand thePathparameter values. Save the result to the$ExclusionMaskvariable. - Run the
Set-VBRObjectStorageBackupJobObjectcmdlet. Set the$objectvariable as theJobObjectparameter value. Set the$ExclusionMaskvariable as theExclusionMaskparameter value.
Related Commands
Get-VBRUnstructuredServerNew-VBRObjectStorageBackupJobObjectDefines a scope of objects that will be added to the object storage backup job.New-VBRObjectStorageBackupContainerPathMaskDefines an exclusion mask for objects in object storage.