Create a script for pre-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> -
Block the Informix server to take a snapshot.
onmode -c block
Example
cat /opt/presnap.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 block