Sync-VBRUnstructuredBackupMetadata
Short Description
Downloads metadata of backup files from the long-term backup repository.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Sync-VBRUnstructuredBackupMetadata -SourceBackup <VBRUnstructuredBackup> -TargetRepository <CBackupRepository> [-RunAsync] [-RetrievalSettings <VBRUnstructuredBackupColdStorageRetrievalSettings>] [-Force] [<CommonParameters>] |
Detailed Description
This cmdlet downloads metadata of backup files from the long-term backup repository to the short-term repository. You can use this cmdlet to restore backup files that are located on the long-term repository but are no longer available on the short-term repository.
Important |
|
Before downloading metadata from the long-term repository, you must run the |
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Force |
Defines that the cmdlet will download metadata of backup files from the long-term backup repository without showing warnings in the PowerShell console. |
|
False |
Named |
False |
|
RetrievalSettings |
Specifies the retrieval policy settings. The cmdlet will use these settings to retrieve data from archive repositories. Note: If you do not provide this parameter, the cmdlet will prompt you to use the default retrieval policy settings.
Accepts the |
|
False |
Named |
False |
|
RunAsync |
Defines that the command returns immediately without waiting for the task to complete. |
|
False |
Named |
False |
|
SourceBackup |
Specifies a backup file. The cmdlet will download metadata of this backup file from the long-term repository.
Accepts the |
True |
Named |
True (ByPropertyName, ByValue) |
|
|
TargetRepository |
Specifies the short-term backup repository. The cmdlet will download metadata of backup files to the specified short-term backup repository.
Accepts the |
|
True |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Examples
Downloading Metadata to Short-term Repository
This example shows how to download data from the long-term repository to the short-term repository.
|
$backup = Get-VBRUnstructuredBackup $repository = Get-VBRBackupRepository Sync-VBRUnstructuredBackupMetadata -SourceBackup $backup -TargetRepository $repository |
Perform the following steps:
- Run the
Get-VBRUnstructuredBackupReturns backup files created by file backup jobs and object storage backup jobs. cmdlet. Save the result to the$backupvariable. - Run the
Get-VBRBackupRepositoryReturns a list of backup repositories. cmdlet. Save the result to the$repositoryvariable. - Run the
Sync-VBRUnstructuredBackupMetadatacmdlet. Set the$backupvariable as theSourceBackupparameter value. Set the$repositoryas theTargetRepositoryparameter value.
Related Commands
Get-VBRUnstructuredBackupReturns backup files created by file backup jobs and object storage backup jobs.Get-VBRBackupRepositoryReturns a list of backup repositories.