--- title: "Sync-VBRBackupRepository" 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." canonical: "https://helpcenter.veeam.com/docs/vbr/powershell/sync-vbrbackuprepository.html" breadcrumb: "Veeam PowerShell Reference > Veeam PowerShell Reference > Backup Infrastructure > Backup Repositories > Sync-VBRBackupRepository" dateModified: "2026-08-19" --- # Sync-VBRBackupRepository ## Short Description Rescans a backup repository. **Platform**: VMware, Hyper-V **Product Edition**: Standard, Enterprise, Enterprise Plus, Veeam Universal License ## Syntax ``` Sync-VBRBackupRepository -Repository [] ``` ## 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 the array of backup repositories you want to rescan.

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

CBackupRepository[]

True

Named

True (ByPropertyName, ByValue)

`` This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see [ Microsoft Docs](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_commonparameters?view=powershell-7). ## Output Object `CBaseSession` ## Examples ::: example ### Example 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`](get-vbrbackuprepository.md) 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. ::: ::: example ### Example 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`](get-vbrbackuprepository.md) cmdlet. Specify the `Name` parameter value. 2. Pipe the cmdlet output to the `Sync-VBRBackupRepository` cmdlet. ::: ## Related Commands [`Get-VBRBackupRepository`](get-vbrbackuprepository.md)