Export-VBRJobObjectMasks
Short Description
Exports masks of objects for file backup jobs and object storage backup jobs.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Export-VBRJobObjectMasks -BackupObject <VBRUnstructuredBackupJobObject> -Job <CBackupJob> -Path <String> [-Force] [<CommonParameters>] |
Detailed Description
This cmdlet exports masks of objects for file backup jobs and object storage backup jobs.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
BackupObject |
Specifies a scope of objects. The cmdlet will export masks that contains these objects.
Accepts the
|
|
True |
Named |
False |
|
Force |
Defines that the cmdlet will export masks without showing warnings in the PowerShell console. |
|
False |
Named |
False |
|
Job |
Specifies an array of of file backups job and object storage backup job. The cmdlet will return masks added to these jobs.
Accepts the |
|
True |
Named |
False |
|
Path |
Specifies a path to a folder. The cmdlet will export masks to this folder. |
|
True |
Named |
True (ByPropertyName, ByValue) |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
VBRImportedUnstructuredBackupMasks
Examples
Exporting Masks for Object Storage Backup Job
This example shows how to exports masks for the Azure backup object storage backup jobs.
|
$Job = Get-VBRUnstructuredBackupJob -Name "filemasks" $BackupObjects = $Job.BackupObject Export-VBRJobObjectMasks -Job $Job -BackupObject $BackupObjects[0] -Path "C:\export.xml" |
Perform the following steps:
- Run the
Get-VBRUnstructuredBackupJobReturns file backup jobs and object storage backup jobs. cmdlet. Specify theNameparameter value. Save the result to the$Jobvariable. - Get the
BackupObjectproperty of the$Jobvariable value. Save result to the$BackupObjectsvariable. - Run the
Export-VBRJobObjectMaskscmdlet. Set the$Jobvariable as theJobparameter value. Set the$BackupObjects[0]variable as theBackupObjectparameter value. Specify thePathparameter value.
Related Commands
Get-VBRUnstructuredServerReturns unstructured data sources added to the inventory.New-VBRNASBackupJobObjectDefines settings of files and folders and enterprise NAS system that will be added to the file backup job.New-VBRObjectStorageBackupJobObjectDefines a scope of objects that will be added to the object storage backup job.Get-VBRUnstructuredBackupJobReturns file backup jobs and object storage backup jobs.