Air Cleaner User Manual

Appendix D. Creating Scripts for Customizing the System
Backup and Install Process
To add additional flexibility and automation to the backup and installation process
for requirements specific to a particular customer environment, SysBack can call
user-created shell scripts, if they exist, before and after the system backup and after
completion of the installation process when installing from a system backup.
These shell scripts can perform any function required and are executed with root
user authority. The following are examples of functions you might want to
perform:
Pre-backup functions:
v Remove all temporary files from the system to prevent unnecessary
backup time and space.
v Send a message to all users that a backup is being performed.
v Automatically log users off the system.
v Shutdown the network daemons or disable tty ports to prevent user
logins.
Post-backup functions:
v Restart network daemons and enable tty ports to allow users to log on.
v Send a message to a user or users that the backup is complete.
Post-install functions:
v Enable a shell for the install user to perform maintenance tasks.
v Remove unwanted configuration data from the system (i.e. user IDs and
passwords). This is needed when cloning systems from a single backup
image.
Script Names
During installation of System Backup & Recovery for AIX, the
/usr/lpp/sysback/scripts directory is created. This directory has read and write
permissions only for the root user. Do not give any other user permission to add
or change the scripts in this directory, because all scripts are executed with root
user authority.
You can create four scripts, which can contain any function, in this directory. The
scripts must be owned by root and must have execute permissions.
The SysBack system backup looks for the following scripts and executes them
before installation if they exist:
/usr/lpp/sysback/scripts/fsback.pre
This script is executed when the System Backup option is selected from
the SMIT menus or when the sysback command is executed. The script is
executed before any other function is performed. Any environment
variables exported before the backup is run are available to this script. In
addition, the following variables will be defined:
DEVICE Name of tape devices, virtual device, or backup image file.
© Copyright IBM Corp. 2002,2003 D-1