Get-OBRecoverableSource

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

Syntax

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

Description

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.

Examples

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.

Parameters

-Server

Specifies the server from which data needs to be recovered.

Type:CBBackupServer
Position:1
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters: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.

Type:SwitchParameter
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

Microsoft.Internal.CloudBackup.Commands.OBRecoverableSource[]