home‎ > ‎backup‎ > ‎

backup ext

Perform an external backup

infx backup type=ext

Performs an external backup of the instance by:
  • blocking the instance, onmode -c block
  • executing the external backup command
  • unblocking the instance, onmode -c unblock

external backup script

A sample external backup script is included in /infx/local/script/sample/ext-backup. This sample simply makes a tar archive of all the chunk files in the instance chunk directory.

# test external restore using tar/gzip
# include disclaimer

mkdir $INFX/backup
mkdir $INFX/backup/ext
cd /tmp

if [ -e $INFX_CHKDIR ] ; then 
tar cvf - . | gzip -c >$INFX/backup/ext/$INFORMIXSERVER.tar.gz
echo dir:$INFX_CHKDIR not found


Perform an external backup using the sample script.

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

onmode -c block executed
onmode -l executed
onmode -c unblock executed

The external backup script was executed and it created a tar archive of all the database chunks.


  • the backup service automatically blocks and un-blocks the instance
  • see 8. BAR manager for information on how to change the command that the external backup uses.