The method of customizing the shell script for backup pre- and post-processing is explained below.
When you do not want to unmount a transaction volume
Edit the script to delete the comment characters ("#") on lines 112-122, 126, and 173 for a transaction volume that you do not want to unmount, and specify the target device in the if statement on line 112.
Make sure that any special editing of this script has not changed the line numbers quoted above or label the lines to be modified in these circumstances clearly.
Do not update the file system of the transaction volume in the period from execution of the sync command on line 119 to backup post-processing. Otherwise, the backed-up file system may be incomplete or execution of the fsck command in the backup post-processing may result in an error.
This operation is possible only when the file system is one of the following two:
ext2
ext3
The pre-processing by the customized scripts is as follows:
State of transaction volume | preprocessing |
---|---|
It is mounted. | All of data buffered in memory are written to disk. |
The post-processing by the customized scripts is as follows:
preprocessing | post-processing |
---|---|
If all of data buffered in memory was written to disk. | Matching of the backup volume is checked. |
Note
If a SDX object is operated in slice units, do not specify slice name (/dev/sfdsk/<class name>/dsk/<volume name>:<sdxinfo DEVNAM value>) in line 112. Instead, specify logical volume name (/dev/sfdsk/<class name>/dsk/<volume name>).