Software AG Products 10.11 | Upgrade and Migration in API Gateway | Upgrading API Gateway | Upgrade recovery
 
Upgrade recovery
During migration, if there is any problem in the execution, to make sure that the assets are migrated properly, you can clean the target instance and run the migration again. The clean command clears the target data store (the one configured in the config.properties of the target machine). During this procedure, all the indices are removed.
Note:
Running the clean command and removal of indices is a non-reversible action.
Before clearing the data, back up the existing data (you can also restore it). Once the data is cleared, run the migration again. When you run the clean command, the process waits for 5 seconds before starting the cleanup. If you start the command unintentionally and want to kill the process, you can do so within this 5-second interval.
Go to <TARGET>\IntegrationServer\instances\default\packages\WmAPIGateway\bin\migrate and run the clean command:
migrate.bat clean
Sample clean command is as follows:
For managed Elasticsearch, run the clean command with backup as false. Sample clean command with backup as false is as follows:
migrate clean -backup false
Note:
Since this command removes all the assets from the API Data Store, make sure that the target API Data Store is properly configured in the config.properties file located at <TARGET>\IntegrationServer\instances\default\packages\WmAPIGateway\config\resources\elasticsearch.