All batch files, scripts, or commands for custom recovery steps that you add to a recovery plan must meet certain requirements.
When you create a command step to add to a recovery plan, make sure that it takes into account the environment in which it must run. Errors in a command step affect the integrity of a recovery plan. Test the command on Site Recovery Manager Server on the recovery site before you add it to the plan.
Site Recovery Manager Appliance
- You must copy the script in the home directory of the admin user /home/admin.
- You must change the access permission of the script so that the srm user can run it. For example, for a bash script, use the following command line:
chmod 755 Myscript.sh
- When you run the script, you must use the full path on the local host. For example, to run a bash script, use the following command:
/bin/sh /home/admin/Myscript.sh