Remove-VBOExcludedBackupItem
Short Description
Removes objects from a list of exclusions specified for a backup job.
Syntax
|
Remove-VBOExcludedBackupItem -Job <VBOJob> -BackupItem <VBOBackupItem[]> [<CommonParameters>] |
Detailed Description
This cmdlet removes objects from a list of exclusions that is specified for a backup job.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
BackupItem |
Specifies an array of objects that you want to remove from the exclusions list.
Accepts the
To get this object, run the |
True |
Named |
False |
|
|
Job |
Specifies a backup job. The cmdlet will remove objects from the exclusions list that is specified for this job.
Accepts the
To get this object, run the |
True |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About Common Parameters section of Microsoft Learn.
Examples
Removing Items from List of Exclusions
This example shows how to remove items from a list of exclusions that is added to the Yearly Backup job.
|
$job = Get-VBOJob -Name "Yearly Backup" $item = Get-VBOBackupItem -Job $job Remove-VBOExcludedBackupItem -Job $job -BackupItem $item |
Perform the following steps:
- Run the
Get-VBOJobReturns backup jobs. cmdlet to specify a job from which you want to get items. SetYearly Backupas theNameparameter value. Save the result to the$jobvariable. - Run the
Get-VBOBackupItemReturns a list of objects included in a backup job. cmdlet. Set the$jobvariable as theJobparameter value. Save the result to the$itemvariable. - Run the
Remove-VBOExcludedBackupItemcmdlet. Set the$jobvariable as theJobparameter value. Set the$itemvariable as theBackupItemparameter value.
Related Commands
Get-VBOJobReturns backup jobs.Get-VBOBackupItemReturns a list of objects included in a backup job.