6.7.5 Example 2 (HiRDB/Parallel Server)

RDAREAs under a unit are backed up during operation of a HiRDB/Parallel Server.

The system configuration is shown in Figure 6-3 System configuration example for backup made using JP1/OmniBack II: JP1/OmniBack II handles communications between server machines. The RDAREAs under unit UNT2 in server machine 2 are backed up. The backup is to be stored in a JP1/OmniBack II object in server machine 3.

Organization of this subsection
(1) Using the pdlogswap command to swap system log files under the unit
(2) Using the pdcopy command to back up the unit

(1) Using the pdlogswap command to swap system log files under the unit

System log files are swapped in order to physically separate the system logs needed for database restoration. To restore the RDAREAs from the backup copy to be created in step (2), the system log collected subsequently (the system log in the file to be used as the current file after swapping) will be used as input information.

pdlogswap -d sys -s bes3 -w

(2) Using the pdcopy command to back up the unit

pdcopy -m /rdarea/mast/mast01 -M r -u UNT2 -k o -b host03:backup002 -G DLT02

Explanation
-m: Specifies the name of the first HiRDB file in the master directory RDAREA.
-M: Specifies the backup acquisition mode.
-u: Specifies that all RDAREAs under unit UNT2 are to be backed up.
-k: Specifies the backup file type. o is specified because backup is to be made into a JP1/OmniBack II object.
-b: Specifies the name of the JP1/OmniBack II object as the backup file name. The format is host-name:object-name.
-G: Specifies the barlist file name.
Remarks
When the automatic log unloading facility is being used, execute the pdlogatul command to record the name of the unload log file that corresponds to the current system log file when backup is being made.

It is recommended that after the command has executed you check whether or not the execution results are correct. For details on how to check command execution results, see the manual HiRDB Version 8 Command Reference.