Previous Topic: Prepare-Reboot - Prepare a Host for MaintenanceNext Topic: Resume-IsAliveCheck - Resume IsAlive Checking of a Running Scenario


Recover-Scenario - Recover Lost Data from the Replica to the Master

The Recover-Scenario command enables you to recover data that was lost on the Master by transferring it from any of the Replica hosts that participate in a scenario. This is done by activating a synchronization process in the reverse direction: from a Replica to the Master. When you activate the Recover-Scenario command, you need to define from which Replica host you want to recover the data, and whether to delete data already on the Master but not on the Replica during the recovery process.

Important! You must stop replication in order to initiate recovery.

To verify that the recovery process is completed, use the Get-Events command. After you get a message informing you that the "Recovery process has finished", you can restart the replication process from the Master to the Replica by using the Run-Scenario command.

Syntax
Recover-Scenario [-Name] <String> [-Host] <String> [-Mode] <String> [-Ignore] <Boolean> [-RemoveMasterFiles] <Boolean> [-RecoveryMode] <String> [-RebootAfterRecovery] <Boolean> 
Parameters
Name

The scenario name.

Host

The Replica host from which you want to recover data.

Mode

The synchronization mode. Enter one of the following:

B=Binary

F=File

Ignore

Ignore files of the same name and size during the data comparison. Enter one of the following:

1=Yes

0= No

RemoveMasterFiles

Whether to delete files that exist only on the Master during the recovery process. Enter one of the following:

1 = Yes, delete files that exist only on the Master

0 = No, keep files that exist only on the Master

RecoveryMode

The data type to recover. Enter one of the following:

A = Application data

S = System State data (only if the System State Protection option is active)

B = Both types of data

The default value is A.

RebootAfterRecovery

Whether to reboot the Master host once the recovery process is completed. Enter one of the following:

1 = Yes, reboot the Master

2 = No, do not reboot the Master

Example: Recover lost data

Recover-Scenario "File Server 1" 192.168.1.153 F 1 0 A 2

Outcome:

Recover application data process started