Restore data to a remote server

You can restore data to a remote server with the ontape utility.

The remote server must have the following characteristics:

  • Identical hardware and operating systems
  • Identical database server versions and editions
  • The same configuration and ROOTPATH information, although the server names and numbers can differ.
You can restore data to a remote server with the following command:
ontape -s -L 0 -F | rsh remote_server "ontape -p"
However, the process might hang after completing successfully. You have three primary options:
  • Terminate the remote shell process
  • Execute the remote shell from the remote server with the following command:
    rsh local_server "ontape -s -L 0 -F" | ontape -p
  • Redirect the standard output (stdout) and standard error (stderr) on the remote server with the following command from the sh or bash shell:
    ontape -p >/dev/null 2>&1
  • You can simplify this redirection by placing it in a shell script, ontape.sh, on the remote server. You can issue the following command from the local server:
    ontape -s -L 0 -F | rsh remote_server /my/path/ontape.sh
  • The shell script ontape.sh contains the following text:
    #!/bin/sh 
    #define some environment variables, such as  
    
    INFORMIXDIR=/... ; export INFORMIXDIR 
    INFORMIXSQLHOSTS=/...; export 
    INFORMIXSQLHOSTS ONCONFIG=/...; export ONCONFIG 
    INFORMIXSERVER=/...; export INFORMIXSERVER 
    PATH=/...; export PATH  
    # invoke ontape with stdout/stderr redirection  
    
    ontape -p >/dev/null 2>&1