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.