Customizing ON-Bar and storage-manager commands

You can edit the script that is installed with ON-Bar to customize backup and restore commands, and storage manager commands.

On UNIX™ operating systems, the onbar shell script is in the $ONEDB_HOME/bin directory. On Windows™ operating systems, the onbar.bat batch script is in the %ONEDB_HOME%\bin directory.

Edit the script and backup a copy of the original file in case you need to revert to it.

Important: Edit the script with caution and test your changes. Do not change the cleanup code at the bottom of the script. Doing so might result in unexpected behavior, for example, leftover temporary files during backup verification.

The script includes commands forHCL® OneDB® Storage Manager and backs up the ISM catalogs. If you are using a different storage manager, delete the ISM-specific lines, and optionally, add commands for the storage manager that you are using.

The script contains the following sections:
  • Add startup processing here

    Use this section to initialize the storage manager, if necessary, and set environment variables.

  • End startup processing here

    This section starts the onbar_d driver and checks the return code. Use this section for onbar_d and storage-manager commands.

  • Add cleanup processing here

    The code in this section backs up the ISM catalogs to the ISMData volume pool after the backup operation is complete. If you are using a third-party storage manager, delete the ISM-specific information.

    If you use a name other than ISMData for the volume pool, change it to the name specified in the ISM_DATA_POOL configuration parameter.

    This section removes the archecker temporary files.

  • End cleanup processing here

    Use this section to return onbar_d error codes.