Loading...

Creating a Script for Post-Snap Process

Create a script for post-snap process similar to that shown in the following example.

Procedure

  1. 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>

  2. To unblock the Informix server to take a snapshot, at the command prompt, type the following command.

    onmode -c unblock

  3. To export CvClientName and CvInstanceName, at the command prompt, type the following command.

    export CvClientName, CvInstanceName

    For more information, see Configuring Environment Variables for Third Party Command Line (ON-Bar) Utility.

  4. To back up Informix log and configuration files, at the command prompt, type the following commands.

    onbar -b -l -c

    onbar -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:${PATH}

export INFORMIXDIR INFORMIXSERVER ONCONFIG INFORMIXSQLHOSTS PATH

onmode -c unblock

export CvClientName= client001

export CvInstanceName=Instance002

onbar -b -l –c

onbar -b -cf only

Last modified: 2/12/2019 3:57:00 AM