The two environment configuration files for backup and restoration are "ccbr.conf" and "ccbr.gen". The storage destination of the data to be backed up or restored can be changed by editing these files using the text editor "vi(1)".
Environmental variables and environment configuration files used for backup and restoration are shown below:
/opt/SMAW/ccbr/ccbr.conf
This file defines variables for PRIMECLUSTER backup and restoration. The variables include the following:
This variable indicates a directory. The backup data is stored into this directory.
The following is a default value:
/var/spool/SMAW/SMAWccbr
/opt/SMAW/ccbr/ccbr.gen
This file defines the number of records for PRIMECLUSTER backup. This number increases one by one whenever the backup process is done.
Information
The number of generations can be also changed with the arguments of cfbackup (1M) / cfrestore(1M). For details, refer to the explanation of each command.
Example
The backup configuration is as follows:
<Setup contents>
Host name: fuji2
CCBRHOME variable: /var/spool/SMAW/SMAWccbr
The value of the "ccbr.gen" file: 1
In the case of above, the following file will be created as the backup data:
/var/spool/SMAW/SMAWccbr/fuji2_ccbr1.tar.Z
Configuration procedure example
Configure the backup data storage destination to "/var/spool/SMAW/SMAWccbr" and the number of generations to "1".
Edit the "/opt/SMAW/ccbr/ccbr.conf" file using the "vi(1)" text editor, and then change the value of the CCBRHOME file to "/var/spool/SMAW/SMAWccbr".
If the value has already been entered, go to Procedure 2.
Confirm the contents.
# cat /opt/SMAW/ccbr/ccbr.conf
... CCBRHOME=/var/spool/SMAW/SMAWccbr export CCBRHOME ... #
Edit the "/opt/SMAW/ccbr/ccbr.gen" file using the "vi(1)" text editor, and then change the value to "1". If the value has already been configured, go to Procedure 3.
Confirm the contents.
# cat /opt/SMAW/ccbr/ccbr.gen 1 #
Back up the PRIMECLUSTER configuration.
# cfbackup
08/07/02 11:17:55 cfbackup 1 started ... 08/07/02 11:21:23 cfbackup 1 ended #
Confirm the contents of the backup file.
# ls /var/spool/SMAW/SMAWccbr fuji2_ccbr1
Example
The restoration configuration is as follows:
<Setup contents>
Host name: fuji2
CCBRHOME variable: /var/spool/SMAW/SMAWccbr
Value of the "ccbr.gen" file: 2
In the above case, the following file will be used as the data to be restored:
/var/spool/SMAW/SMAWccbr/fuji2_ccbr1
Configuration procedure example
Configure the destination of the restoration data to "/var/spool/SMAW/SMAWccbr" and the number of generations to "1".
Edit the "/opt/SMAW/ccbr/ccbr.conf" file using the "vi(1)" text editor, and then make the value of the CCBRHOME variable "/var/spool/SMAW/SMAWccbr".
If the value has already been configured, proceed to Procedure 2.
Confirm the contents.
# cat /opt/SMAW/ccbr/ccbr.conf
... CCBRHOME=/var/spool/SMAW/SMAWccbr export CCBRHOME ... #
Edit the "/opt/SMAW/ccbr/ccbr.gen" file using the "vi(1)" text editor, and then change the value to "2" (specify a value that is 1 greater than the target number of generations).
If the value has already been configured, proceed to Procedure 3.
Confirm the contents.
# cat /opt/SMAW/ccbr/ccbr.gen 2 #
Restore the PRIMECLUSTER environment.
# cfrestore
08/07/02 11:17:55 cfrestore 1 started ... 08/07/02 11:21:23 cfrestore 1 ended #