Remove-VBOExcludedBackupItem

In this article

    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

    Accept Wildcard Characters

    Job

    Specifies a backup job. The cmdlet will remove objects from a list of exclusions that is specified for this job.

    Accepts the VBOJob object.

    To get this object, run the Get-VBOJob cmdlet.

    True

    Named

    False

    False

    BackupItem

    Specifies an array of objects that you want to remove from a list of exclusions.

    Accepts the VBOBackupItem[] object.

    To get this object, run the Get-VBOBackupItem cmdlet.

    True

    Named

    False

    False

    <CommonParameters>

    This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About CommonParameters section of Microsoft Docs.

    Output Object

    None.

    Examples

    Remove-VBOExcludedBackupItemExample 1. 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:

    1. Run the Get-VBOJob cmdlet to specify a job from which you want to get items. Set Yearly Backup as the Name parameter value. Save the result to the $job variable.
    2. Run the Get-VBOBackupItem cmdlet. Set the $job variable as the Job parameter value. Save the result to the $item variable.
    3. Run the Remove-VBOExcludedBackupItem cmdlet. Set the $job variable as the Job parameter value. Set the $item variable as the BackupItem parameter value.

    Related Commands