Backup and restoration of system files
From the point of view of safe operation of the system, take a periodic backup of the system files in case of emergencies such as a hard disk crash.
-
Be sure to exit from HULFT before you carry out backup or restoration work.
-
You cannot apply the backup file to an environment that is different from the one in which you have created the backup file.
Backup Method
A HULFT backup can be made with the following procedure. It is recommended that the user who installed HULFT or a superuser (root) perform the following operations. In this procedure, it is assumed that HULPATH at the time of HULFT operation is '/usr/local/HULFT/etc.' If a different HULPATH is in use, replace the path with that of your environment.
1. Move to HULFT installation directory.
%cd /usr/local/HULFT/
2. Check HULFT environment.
%ls bin etc
3. Move to the 'etc' directory, which is a HULPATH environment.
%cd etc
4. Check the contents of the HULPATH environment.
%ls huladm.info hulcsv.info hulenv.conf ......
The result mentioned above is an example. The content of the display differs according to your HULFT environment.
5. Create a backup.
%tar cvf ../HULFT_INFO.tar ./*
Here, all files that exist in this directory are the target of the backup. Hence, the log file is also targeted for backup. To exclude a log file from the backup targets, first use the following command to delete the log data.
-
Send and Receive Log Deletion command (utllog)
-
Observe Log Delete command (utlobsrm)
6. Verify that a backup has been created.
%cd ../ %ls HULFT_INFO.tar bin etc ......
7. Move the created backup file 'HULFT_INFO.tar' to the backup destination directory. You can decide the backup destination directory.
%mv HULFT_INFO.tar HULFT backup destination directory
8. Move to the backup destination directory and verify whether the backup file is correct.
%cd HULFT_backup_destination_directory %ls HULFT_INFO.tar %tar tvf HULFT_INFO.tar rw-r--r-- 103/101 2548 Dec 9 17:19 2014 ../hulenv.conf rw-r--r-- 103/101 335 Dec 8 19:02 2014 ../service.db rw-r--r-- 103/101 341 Dec 8 19:02 2014 ../hulcsv.info rw-r--r-- 103/101 256 Dec 8 19:02 2014 ../huladm.info . . .
The backup is now complete. Archive these files in case restoration becomes necessary.
Method of backup restoration
You can restore from a backup by using the following procedure. It is recommended that the user who installed HULFT or a superuser (root) perform the following operations. In this procedure, it is assumed that HULPATH at the time of HULFT operation is '/usr/local/HULFT/etc.' If a different HULPATH is in use, replace the path with that of your environment.
1. Move to the directory where the backup of the HULFT management information is stored.
%cd HULFT_management_information_backup_directory
2. Verify that the HULFT management information backup file exists.
%ls HULFT_INFO.tar
If any other file name is specified at the time of backup, use the name of your backup file.
3. Move to the 'etc' directory, which is a HULPATH environment.
%cd /usr/local/HULFT/etc
4. Check the contents of the HULPATH environment.
%ls huladm.info hulcsv.info hulenv.conf ......
5. Copy and then restore the backup file.
%cp backup_file_directory/HULFT_INFO.tar . %tar xvf ./HULFT_INFO.tar
By following the method mentioned above, all management information is changed to the content of the backup. Note that after a restoration, it is not possible to return to the conditions that existed before the restoration was performed.
6. When restoration is complete, check whether it is reflected in the environment by using the HULFT Management Console and the like.
%utladmin
Select each menu and check the contents.
7. Once you confirm the environment is returned to the state when the backup is created, the restoration is complete. The backup file can be deleted if it is not required.