6.7.4 Example 1 (HiRDB/Single Server)

All RDAREAs are backed up during operation of a HiRDB/Single Server. The system configuration is shown in Figure 6-3.

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

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

System log files are swapped in order to physically separate the system logs required 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 -w

(2) Using the pdcopy command to back up all RDAREAs

pdcopy -m /rdarea/mast/mast01 -M r -a -k o -b host02:backup001 -G DLT01
-z /lopoint/point01 -p /pdcopy/list01

Explanation
-m: Specifies the name of the first HiRDB file in the master directory RDAREA.
-M: Specifies the backup acquisition mode.
-a: Specifies that all RDAREAs 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.
-z: Specifies the name of the log point information file. Specify this option when operation without unloading the system log or the automatic log unloading facility is being used.
-p: Specifies the file name for the pdcopy command's processing results listing.

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.