User guide
238 | Scripting
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.
Prerequisites for Bourne Shell Scripting
All scripts must be named PreTransferScript.sh and PostTransfer.sh and have to
reside in the /opt/appassure/scripts/ directory.
Testing Bourne Shell Scripting
You can test the scripts you want to run by using the editor for the script (.sh) files.
Input Parameters for Bourne Shell Scripting
The parameters for Bourne Shell scripting in AppAssure 5 are described in the
following tables.
TransferPrescriptParameter
The following table presents the available objects for the TransferPrescript
parameter.
If the pre-Bourne Shell or post-Bourne Shell scripts fail, the job will also fails. Information about
the job is available in the /var/log/appassure/appassure.log file.
Method Description
public VolumeNameCollection VolumeNames (get;
set; )
Gets or sets the collection of volume names for
transfer.
VolumeNames is a data structure that contains the
following data:
GuidName - The Guid associated with the
volume, used as the name if a DisplayName is not
set.
DisplayName - The displayed name of the
volume.
public ShadowCopyType ShadowCopyType { get; set;
}
Gets or sets the type of copying for transfer.
ShadowCopyType is an enumeration with values.
The available values are:
Unknown
Copy
Full