Enterprise Edition Home | Express Edition Home | Previous Page | Next Page   The ontape Backup and Restore System (IDS) > Restoring with ontape >

Simultaneous Backup and Restore Using Standard I/O

To clone a database server or quickly set up High-Availability Data Replication (HDR), you can perform a simultaneous backup to standard output and restore from standard input. If you perform the backup and restore solely to duplicate a database server, use the -F option to prevent the archive from being saved.

For example, the following command loads data into the secondary server of an HDR pair (named secondary_host):

ontape -s -L 0 -F| rsh secondary_host "ontape -p"

This command performs a fake level-0 archive of the database server on the local computer, pipes the data to the remote computer using the rsh system utility, and performs a physical restore on the remote computer by reading the data directly from the pipe.

Note:
The previous example requires that the INFORMIXDIR, INFORMIXSERVER, INFORMIXSQLHOSTS, and ONCONFIG environment variables are set in the default environment for the user on the remote computer on which the command is executed. The user must be informix or root.
Enterprise Edition Home | Express Edition Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]