DL4300 Appliance
Input parameters for Bourne Shell scripting
524
NOTE:
Note that if a script is not executable, the transfer job will fail.
•
PreTransferScript.sh
•
PostTransferScript.sh
•
PostExportScript.sh
To use these scripts, ensure that they reside in the
/opt/apprecovery/scripts/
directory.
Supported transfer and post-transfer script parameters
The following parameters are supported on Linux for transfer scripts. For more information, see
•
TransferPrescriptParameter_VolumeNames=$TransferPrescriptParameter_VolumeNames
•
TransferPrescriptParameter_ShadowCopyType=$TransferPrescriptParameter_ShadowCopyType
•
TransferPrescriptParameter_TransferConfiguration=$TransferPrescriptParameter_TransferConfiguration
•
TransferPrescriptParameter_StorageConfiguration=$TransferPrescriptParameter_StorageConfiguration
•
TransferPrescriptParameter_Key=$TransferPrescriptParameter_Key
•
TransferPrescriptParameter_ForceBaseImage=$TransferPrescriptParameter_ForceBaseImage
•
TransferPrescriptParameter_IsLogTruncation=$TransferPrescriptParameter_IsLogTruncation
•
TransferPrescriptParameter_LatestEpochSeenByCore=$TransferPrescriptParameter_LatestEpochSeenByCore
The following parameters are supported on Linux for post transfer scripts.
•
TransferPostscriptParameter_VolumeNames=$TransferPostscriptParameter_VolumeNames
•
TransferPostscriptParameter_ShadowCopyType=$TransferPostscriptParameter_ShadowCopyType
•
TransferPostscriptParameter_TransferConfiguration=$TransferPostscriptParameter_TransferConfiguration
•
TransferPostscriptParameter_StorageConfiguration=$TransferPostscriptParameter_StorageConfiguration
•
TransferPostscriptParameter_Key=$TransferPostscriptParameter_Key
•
TransferPostscriptParameter_ForceBaseImage=$TransferPostscriptParameter_ForceBaseImage
•
TransferPostscriptParameter_IsLogTruncation=$TransferPostscriptParameter_IsLogTruncation
•
TransferPostscriptParameter_LatestEpochSeenByCore=$TransferPostscriptParameter_LatestEpochSeenByCore
Testing Bourne Shell scripting
You can test the scripts you want to run by using the editor for the script (.sh) files.
NOTE:
If the pre-Bourne Shell or post-Bourne Shell scripts fail, the job also fails. Information about the job
is available in the /var/log/apprecovery/apprecovery.log file.
Successful scripts return the exit code 0.
Parent topic
Input parameters for Bourne Shell
scripting
The parameters for Bourne Shell scripting in Rapid Recovery are described in the following tables.