Modifying DB2 backup and install scripts
The following procedure describes how to modify scripts. Special configuration is required for a DB2 EEE (DPF) environment.
To modify the DB2 backup and install scripts
- Copy the example scripts to a different directory on your client in a safe location. In clustered environments, this location should be available after a failover.
- On UNIX, set the access permissions of these scripts to 775.
chmod 775 script_name
- Use a text editor to open the script.
- Follow the instructions in the script.
- On UNIX, include an su - user line (user is the DB2 instance account) in your scripts. Otherwise, the scripts do not run with the proper permissions and environment variables.
- Test the scripts that you created by starting a manual backup of this policy.