User guide
240  | Scripting 
Sample Bourne Shell Scripts
The following sample scripts are provided to assist administrative users in executing 
Bourne Shell scripts for agents. You can use the sample scripts and customize them 
as needed. The sample scripts for agents include:
 PreTransferScript.sh
 PostTransferScript.sh
PreTransferScript.sh
The PreTransferScript is executed on the agent side prior to 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_Volum
eNames
TransferPrescriptParameter_ShadowCopyType=$TransferPrescriptParameter_Sha
dowCopyType
TransferPrescriptParameter_Key=$TransferPrescriptParameter_Key
public bool IsLogTruncation { get; set; } Gets or sets the value indicating whether logging is 
being truncated.
public uint LatestEpochSeenByCore { get; set; } Gets or sets latest epoch value. 
The LatestEpochSeenByCore method is the ordinal 
number of the most recent snapshot taken by the 
Core. This is the 'epoch number' assigned by the 
filter driver to this particular snapshot at the 
moment it was taken with VSS.
The agent uses the 'exec' shell command to launch the scrip. You can indicate which interpreter 
should run the script by defining that information in the first line of the script, which is similar to 
what you define for any normal script being executed from the command line. If you don’t specify 
the interpreter, the default shell will interpret the script. If you choose something other than the 
default shell, you will have to ensure that the specified interpreter is available on all protected 
machines.
 Method Description










