home‎ > ‎restore‎ > ‎

restore ext

Perform an external restore. Executes the specified external restore script.

usage

infx restore type=ext inst [ force=yes|no online=yes|no ]
     restore extenal backup
       required:
         inst - instance name
       optional:
         force - force the instance offline first
         online - bring the instance online after

external restore script

Sample script provided in /infx/local/script/sample/ext-restore. Extracts a tar archive of the chunk files.

#!/bin/sh
#
# test external restore using tar/gzip
#
# include disclaimer

cd /tmp

if [ -e $INFX_CHKDIR ] ; then 
cd $INFX_CHKDIR
echo restoring to `pwd`
gzip -dc <$INFX/backup/ext/$INFORMIXSERVER.tar.gz | tar xvf - . 
else
echo dir:$INFX_CHKDIR not found
fi

example

Perform an external restore

demo1@bobii:/home/informix>infx restore demo1 type=ext

onclean: Cleaning up processes and resources for 'demo1'...
onclean: Cannot open the file /infx/inst/demo1/informixdir/etc/.conf.demo1.
Ensure that the value of the INFORMIXSERVER environment variable
matches the value of the DBSERVERNAME configuration parameter
from your onconfig file.
restoring to /infx/inst/demo1/chks
./
./idx04.000
./pool.002
./sblob01.000
./sblob01.001
./log02.000
./root.001
./tmp01.000
./dat02.000
./log01.000
./ltmp01.000
./plog.000
./blob01.000
./idx03.000
./dat01.000
./idx01.000
./tmp02.000
./idx02.000
./dat04.000
./dat03.000

Perform an external restore, force the instance offline first and bring it online after

demo1@bobii:/home/informix>infx restore demo1 type=ext force=yes online=yes