Sync-VBRBackupRepository

In this article

    Short Description

    Rescans a backup repository.

    Applies to

    Platform: VMware, Hyper-V

    Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License

    Syntax

    Sync-VBRBackupRepository -Repository <CBackupRepository[]> [-WarningAction <ActionPreference>] [-WarningVariable <String>] [<CommonParameters>]

    Detailed Description

    This cmdlet allows you to rescan a backup repository and get details on backups stored on it.

    You can perform the repository rescan, for example, in case you have imported or copied backups.

    Parameters

    Parameter

    Description

    Type

    Required

    Position

    Accept
    Pipeline
    Input

    Repository

    Specifies an array of backup repositories you want to rescan.

    Accepts the CBackupRepository object. To get this object, run the Get-VBRBackupRepository cmdlet.

    True

    Named

    True (ByValue,
    ByProperty
    Name)

    <CommonParameters>

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

    Output Object

    The cmdlet returns the CBackupRepository object that contains settings of backup repositories added to the backup infrastructure.

    Examples

    Sync-VBRBackupRepositoryExample 1. Rescanning Backup Repository [Using Variable]

    This example shows how to rescan the repository named Local Repository 01.

    $repository = Get-VBRBackupRepository -Name "Local Repository 01"

    Sync-VBRBackupRepository -Repository $repository

    Perform the following steps:

    1. Run the Get-VBRBackupRepository cmdlet. Specify the Name parameter value. Save the result to the $repository variable.
    2. Run the Sync-VBRBackupRepository cmdlet. Set the $repository variable as the Repository parameter value.

    Sync-VBRBackupRepositoryExample 2. Rescanning Backup Repository [Using Pipeline]

    This example shows how to rescan the repository named Local Repository 01.

    Get-VBRBackupRepository -Name "Local Repository 01" | Sync-VBRBackupRepository

    Perform the following steps:

    1. Run the Get-VBRBackupRepository cmdlet. Specify the Name parameter value.
    2. Pipe the cmdlet output to the Sync-VBRBackupRepository cmdlet.

    Related Commands

    Get-VBRBackupRepository