Nonstop Database, HiRDB Version 9 System Operation Guide

[Contents][Index][Back][Next]

6.4.3 Example 3 (backing up a system)

All RDAREAs are backed up during operation of a HiRDB single server configuration.

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

(1) Using the pdlogswap command to swap the 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 -b /pdcopy/backup01
-z /pdcopy/logpoint01 -p /pdcopy/list01
 

Explanation
-m: Specifies the name of the first HiRDB file in the master directory RDAREA.
-M: Specifies the referencing-permitted mode as the backup acquisition mode.
-a: Specifies that all RDAREAs are to be backed up.
-b: Specifies the name of the backup file.
-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 output file name for the pdcopy command's processing results listing.

We recommend that after the command has executed you check whether the execution results are correct. For details on how to check command execution results, see the manual HiRDB Version 9 Command Reference.