![Quest Engineering DL4300 User Manual Download Page 523](http://html1.mh-extra.com/html/quest-engineering/dl4300/dl4300_user-manual_3648779523.webp)
DL4300 Appliance
Using Bourne Shell scripting in Rapid Recovery
523
echo 'TransferConfiguration:' $TransferJobRequestObject.TransferConfiguration;
echo 'StorageConfiguration:' $TransferJobRequestObject.StorageConfiguration;
}
echo 'LatestEpochSeenByCore:' $LatestEpochSeenByCore;
$TakeSnapshotResponseObject = $TakeSnapshotResponse -as [Replay.Agent.Contracts.Transfer.TakeSnapshotResponse];
if($TakeSnapshotResponseObject -eq $null) {
echo 'TakeSnapshotResponseObject parameter is null';
}
else {
echo 'ID of this transfer session:' $TakeSnapshotResponseObject.SnapshotSetId;
echo 'Volumes:' $TakeSnapshotResponseObject.VolumeSnapshots;
}
break;
}
}
Parent topic
Using Bourne Shell scripting in Rapid
Recovery
Bourne shell (sh) is a shell language or command-line interpreter for Unix-based operating systems. Bourne shell
is used in Rapid Recovery with Linux to customize environments and specify certain operations to occur in a
predetermined sequence. The .sh is the file extension and naming convention for Bourne shell files.
Bourne Again Shell (BASH) is a similar shell language that implements the same grammar, parameter, and
variable expansion, redirection and quoting. BASH also uses the same .sh file extension. The information here
applies equally to BASH.
Using pre and post transfer and export script hooks, you can perform system operations before and after a
transfer or export. For example, you may want to disable a certain cronjob while a transfer is occurring and enable
it once the transfer has finished. As another example, you may need to run commands to flush application-
specific data to disk. The contents are written to a temporary file and run using exec. The script then runs using
the interpreter defined in the first line of the script, for example,
(#!/usr/bin/env bash)
. If the specified
interpreter is not available, the script uses the default shell defined in the $SHELL environment variable.
You can substitute and use any interpreter. For example, on the
#!
line of the script, you can replace “bash” with
“zsh” (Z shell), “tcsh” (tee shell), and so on, based on your preference.
You can add available objects from the TransferPrescript parameter or add your own commands to the
PreTransferScript.sh and PostTransfer.sh scripts to customize them.
This section describes the scripts that can be used by administrators at designated occurrences in Rapid
Recovery for Windows and Linux. It includes the following topics:
•
Input parameters for Bourne Shell scripting
•
Prerequisites for Bourne Shell scripting
Rapid Recovery provides the ability to run Bourne Shell scripts on the Linux Agent machine before and after
a transfer. The following scripts are supported for Linux machines protected with the Rapid Recovery Agent
software.