Create a script for post-snap process similar to that shown in the following example.
Procedure
-
To export the Informix environment variables, for example, INFORMIXDIR, INFORMIXSERVER, ONCONFIG, and INFORMIXSQLHOSTS, at the command prompt, type the following command. You might have different variables to export depending on your environment.
EXPORT <Informix envt variables> -
To unblock the Informix server to take a snapshot, at the command prompt, type the following command.
onmode -c unblock -
To export CvClientName and CvInstanceName, at the command prompt, type the following command.
export CvClientName, CvInstanceNameFor more information, see Configuring Environment Variables for Third Party Command Line (ON-Bar) Utility.
-
To back up Informix log and configuration files, at the command prompt, type the following commands.
onbar -b -l -conbar -b -cf only
Example
# cat /opt/postsnap.sh
#!/bin/ksh
#
INFORMIXDIR=/opt/IBM/informix
INFORMIXSERVER=ol_informix1170_1
ONCONFIG=onconfig.ol_informix1170_1
INFORMIXSQLHOSTS=/opt/IBM/informix/etc/sqlhosts.ol_informix1170_1
PATH=$INFORMIXDIR/bin:$pathexport INFORMIXDIR INFORMIXSERVER ONCONFIG INFORMIXSQLHOSTS PATH
onmode -c unblock
export CvClientName= client001
export CvInstanceName=Instance002onbar -b -l –c
onbar -b -cf only