Share via


Get-OBRecoverableSource

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

Syntax

Default (Default)

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.

Parameter properties

Type:CBBackupServer
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:1
Mandatory:False
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments: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.

Parameter properties

Type:SwitchParameter
Default value:False
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

Inputs

None

Outputs

Microsoft.Internal.CloudBackup.Commands.OBRecoverableSource