Set-EmcRecoverProductionCopy

Recovers the production copy by using the specified replica copy.

 

Syntax

Set-EmcRecoverProductionCopy -Copy <ReplicaCopy> [-Force] [-Silent] [-WhatIf] [-Confirm] [<CommonParameters>]

 

Parameters

-Copy <ReplicaCopy>

Attributes: Required, Position: named

Specifies the replica copy to be used for production recovery.

 

-Force <SwitchParameter>

Attributes: Optional, Position: named

Allows the cmdlet to continue without asking for user confirmation.

 

-Silent <SwitchParameter>

Attributes: Optional, Position: named

Turns off all the informational and verbose messages. However, it still displays errors.

 

-WhatIf <SwitchParameter>

Attributes: Optional, Position: named

Describes what would happen if you executed the command without actually executing the command.

 

-Confirm <SwitchParameter>

Attributes: Optional, Position: named

Prompts you for confirmation before executing the command.

 

<CommonParameters>

This cmdlet supports these common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, and OutVariable. Type get-help about_commonparameters for more details.

 

Example

C:\PS>$service = Get-EmcReplicationService -ID *60*

$cluster = Get-EmcReplicationServiceCluster -ReplicationService $service

$copy = Get-EmcReplicaCopy -ReplicationServiceCluster $cluster -Role RemoteCopy -ID RP_PS_TEST_CR

$snapshots = Get-EmcReplicaCopySnapshots -Copy $copy[0]

$copy = Enable-EmcReplicaCopyImageAccess -Copy $copy[0] -ImageAccessScenario RecoverProduction -Snapshot -$snapshot[1]

Set-EmcRecoverProductionCopy -Copy $copy

Recovers the production copy by using the specified replica copy.