The PreTransferScript is run on the protected Linux machine immediately before the backup snapshot transfer begins.
|
NOTE: For clarification on when pre and post scripts are run, see .Using Bourne shell and Bash scripting with Rapid Recovery. |
The following script stores the values from input parameters in PreTransferScriptResult.txt, which is stored in the root home directory.
#!/bin/bash echo "TransferPrescriptParameter_VolumeNames=$TransferPrescriptParameter_VolumeNames TransferPrescriptParameter_ShadowCopyType=$TransferPrescriptParameter_ShadowCopyType TransferPrescriptParameter_Key=$TransferPrescriptParameter_Key TransferPrescriptParameter_ForceBaseImage=$TransferPrescriptParameter_ForceBaseImage TransferPrescriptParameter_IsLogTruncation=$TransferPrescriptParameter_IsLogTruncation TransferPrescriptParameter_LatestEpochSeenByCore=$TransferPrescriptParameter_LatestEpochSeenByCore" > ~/PreTransferScriptResult.txt exit 0
The PostTransferScript is run on the protected Linux machine after the backup snapshot process has fully completed.
|
NOTE: For clarification on when pre and post scripts are run, see .Using Bourne shell and Bash scripting with Rapid Recovery. |
The following script stores the values from input parameters in PostTransferScriptResult.txt, which is stored in the root home directory.
#!/bin/bash echo "TransferPostscriptParameter_VolumeNames=$TransferPostscriptParameter_VolumeNames TransferPostscriptParameter_ShadowCopyType=$TransferPostscriptParameter_ShadowCopyType TransferPostscriptParameter_Key=$TransferPostscriptParameter_Key TransferPostscriptParameter_ForceBaseImage=$TransferPostscriptParameter_ForceBaseImage TransferPostscriptParameter_IsLogTruncation=$TransferPostscriptParameter_IsLogTruncation TransferPostscriptParameter_LatestEpochSeenByCore=$TransferPostscriptParameter_LatestEpochSeenByCore" > ~/PostTransferScriptResult.txt exit 0
The PreSnapshotScript is run on the protected Linux machine after preparation but before data is read from the original device when capturing a snapshot. This script does not receive parameters from the protected machine.
|
NOTE: For clarification on when pre and post scripts are run, see .Using Bourne shell and Bash scripting with Rapid Recovery. |
The following script returns the time that the script completed on the machine in hours, minutes, and seconds, based on the system time of the Core. This information is logged in PreSnapshotScriptResult.txt, which is stored in the root home directory.
#!/bin/bash echo "`date +%H:%M:%S` PreSnapshot script has been executed." > ~/PreSnapshotScriptResult.txt exit 0
The PostSnapshotScript is run on the protected Linux machine after data is read from the original device when capturing a snapshot, but before data is read from the copied device. This script does not receive parameters from the protected machine.
|
NOTE: For clarification on when pre and post scripts are run, see .Using Bourne shell and Bash scripting with Rapid Recovery. |
The following script returns the time that the script completed on the machine in hours, minutes, and seconds, based on the system time of the Core. This information is logged in PostSnapshotScriptResult.txt, which is stored in the root home directory.
#!/bin/bash echo "`date +%H:%M:%S` PostSnapshot script has been executed." > ~/PostSnapshotScriptResult.txt exit 0
© 2024 Quest Software Inc. ALL RIGHTS RESERVED. Nutzungsbedingungen Datenschutz Cookie Preference Center