DL4300 Appliance
PostExportScript.sh
527
Parent topic
PreTransferScript.sh
The PreTransferScript is run on the protected machine before transferring a snapshot.
The following script stores the values from input parameters in the Pre(Post)TransferScriptResult.txt, which is
located and stored in the root home directory.
Sample PreTransferScript
#!/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
Parent topic
PostTransferScript.sh
The PostTransferScript is run on the protected machine after transferring a snapshot.
The following script stores the values from input parameters in the Pre(Post)TransferScriptResult.txt, which is
located and stored in the root home directory.
Sample PostTransferScript
#!/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
Parent topic
PostExportScript.sh
The PostExportScript is run on the protected machine after the transfer.
The following script stores the values from input parameters in the Pre(Post)ExportScriptResult.txt, which is
located and stored in the root home directory.
Sample PostExportScript
#!/bin/bash
echo
"$curr_name-exported" > /etc/hostname
exit 0
Parent topic
Содержание DL4300
Страница 1: ...DL4300 Appliance User Guide...