次の方法で共有


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
DontShow:False

パラメーター セット

(All)
配置: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
DontShow:False

パラメーター セット

(All)
配置:Named
必須:True
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

入力

None

出力

Microsoft.Internal.CloudBackup.Commands.OBRecoverableSource