You can automate actions to execute during and after recovery. For example, you can choose whether the recovery operation should continue to next entity if the previous entity cannot be processed successfully.
Go to the Configuration Tab of the Recovery Group
-
From the navigation pane, go to Cleanroom > Recovery groups.
The Recovery groups page appears.
-
Click the recovery group.
The recovery group page appears.
-
Click the Configuration tab.
Add Post Recovery Action Settings
-
On the Configuration tab, in the Recovery scripts section, click Add.
The Configure post-recovery action dialog box appears.
Note
The following recovery scripts are accepted as input:
-
Windows: PowerShell
-
Linux: Linux shell
For more information, see Post-Action Recovery Scripts
-
-
To specify the script for Unix and Windows, choose one the following options:
-
Upload the recovery script:
- For Select script type, select Upload file, click the Upload button , and then select the script.
-
Specify the recovery script using the UNC path:
-
For Select script type, select UNC.
-
In the Path box, enter the UNC path for Windows or Unix.
Examples:
Windows: Enter the UNC path as WindowsPathwin.ps1.
UNIX: Enter the UNC path as \\Pathtofile\file.sh
-
If you have not previously saved any credentials, in the Username box, enter the user name for a user account that has permissions to access the network path on the recovery target, and in the Password box, enter the password for the user account.
-
If you have previously saved credentials for the UNC network, from the Credential list, select the credential.
Note
To create a new credential, beside Credential, click the Create new button +.
-
-
-
In the Script display name box, enter a name for recovery script.
-
Click Save.
-
To change the execution order of scripts when there are multiple scripts, in the Recovery scripts section, click Reorder. The Reorder dialog box appears.
-
Drag and drop the scripts to rearrange the order, and then click Save.
Set Delay Between Priorities
-
In the Customization options section, beside Delay between priorities (in mins), click the Edit button .
-
In the box, enter a value in minutes to specify how long the recovery operation should wait between processing VMs that are assigned different priorities.
This setting can be used to enable higher priority machines to start before processing the next set of machines.
-
Click Submit.
Enable Recovery Operation to Continue Upon Failure
When a VM cannot be included in the recovery operation, you can continue to next priority upon failure.
-
In the Customization options section, move the Continue to next priority on failure toggle key to the right.
If you do not enable this option, the recovery operation stops when a VM cannot be processed successfully.