Get-OBRecoverableSource

Get the list of datasources recoverable from this server or the specified OBBackupServer object.

语法

Default (默认值)

Get-OBRecoverableSource
    [[-Server] <CBBackupServer>]

说明

The Get-OBRecoverableSource cmdlet gets the list of datasources recoverable from this server or the specified OBBackupServer object. This list is then used to get item level recovery.

To use Microsoft Azure Backup cmdlets, the user needs to be an administrator on the protected machine.

示例

Example 1: Get recoverable data sources

Get-OBRecoverableSource

This example returns all recoverable data sources.

Example 2: Get recoverable data sources for backup servers

Get-OBAlternateBackupServer | Get-OBRecoverableSource

This command returns the recoverable data sources for the backup servers that are associated with the backup account.

Example 3: Get recoverable data sources from secondary region for the current server

$RecoveryPath = “C:\\MARSRecoveredFiles”
$sources = Get-OBRecoverableSource -UseSecondaryRegion
$RP = Get-OBRecoverableItem -Source $sources[0]
$RO = New-OBRecoveryOption -DestinationPath $RecoveryPath -OverwriteType Overwrite
Start-OBRecovery -RecoverableItem $RP -RecoveryOption $RO -Async | ConvertTo-Json

This command returns the recoverable data sources for the current server from the secondary region.

参数

-Server

Specifies the server from which data needs to be recovered.

参数属性

类型:CBBackupServer
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:1
必需:False
来自管道的值:True
来自管道的值(按属性名称):False
来自剩余参数的值:False

-UseSecondaryRegion

Specify this option when you restore from the current server to recover backup data from the secondary region (Cross Region Restore). This option is not required when you restore from an alternate server using the vault credential file because you need to pass the vault credential file of the secondary region in the MARS agent.

参数属性

类型:SwitchParameter
默认值:False
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:True
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

输入

None

输出

Microsoft.Internal.CloudBackup.Commands.OBRecoverableSource