Configure Scripts
Prescripts and postscripts are scripts that can be run before or after Backup and Restore jobs run at the job-level. Supported scripts include shell scripts for Linux-based machines and Batch and PowerShell scripts for Windows-based machines. Scripts are created locally, uploaded to your environment through the Scripts pane, then applied to job definitions.
HYPERVISOR CONSIDERATIONS:
- The user running the script must have the "Log on as a service" right enabled, which is required for running prescripts and postscripts. For more information about the "Log on as a service" right, see https://technet.microsoft.com/en-us/library/cc794944.aspx.
- Windows Remote Shell (WinRM) must be enabled.
Upload a script:
Supported scripts include shell scripts for Linux-based machines and Batch and PowerShell scripts for Windows-based machines. Scripts must be created using the operating system's associated file format.
- From the navigation menu, expand Jobs and Operations, then click Script.
- In the Scripts section, click Upload Script. The Upload Script pane displays.
- In the Script field, browse for and select a local script to upload.
- Click Save. The script appears in the Scripts table and can be applied to supported jobs.
Set servers where scripts will be injected and executed:
- From the navigation menu, expand Jobs and Operations, then click Script.
- In the Script Server section, click Add Script Server. The Script Server Properties pane displays.
- Populate the fields in the Script Server Properties pane:
- Host Address
- Enter the resolvable IP address or a resolvable path and machine name.
- Use existing user
- Enable to select a previously entered username and password for the provider.
- Username
- Enter your username for the provider. If entering a SQL server, the user identity follows the default domain\Name format if the virtual machine is attached to a domain. The format <local administrator> is used if the user is a local administrator.
- Password
- Enter your password for the provider.
- OS Type
- Select the operating system of the application server. Available options include Linux/AIX and Windows.
- Click Save.
IBM Spectrum Protect Plus 10.1.2
Licensed Material - Property of IBM Corp. © IBM Corporation and other(s) 2018. IBM is a registered trademark of the IBM Corporation in the United States, other countries, or both. | 8/23/2018