Syntax of the onrestorept command

The onrestorept command undoes changes made during a failed upgrade, restoring files to the state they were in when you shut down the server.

Read syntax diagramSkip visual syntax diagram
>>-onrestorept--+-----+--+-----+--+-----+----------------------><
                '- -V-'  '- -c-'  '- -y-'   

Element Purpose Key Considerations
-V Display the version of the current server and the software serial number.  
-c After a failed upgrade, delete the files in the directory specified in the RESTORE_POINT_DIR configuration parameter. Before you begin another upgrade, you must delete these restore point files. Do this before you make another migration attempt, but not before your run the onrestorept utility to recover the files (if possible).

If the upgrade was successful, restore point files are automatically deleted and there is no need to run onrestorept -c.

-y Automatically accept every prompt while the onrestorept command runs. If you do not specify -y, you must respond to every prompt.

Examples

The following command restores Informix® files after a failed upgrade:

onrestorept

The following command removes restore point files after a failed upgrade:

onrestorept -c

Copyright© 2018 HCL Technologies Limited