Scripts Migration
At the time of running servers, Fiorano provides an option to edit various server properties including the amount of memory to be used by the servers and also the executable scripts for setting various user-defined variables. Script migration provides the option to directly move these changes from an old Fiorano installer to the new installer using the utility without having to redo the changes manually.
To migrate script or configuration files from Fiorano 10 or later versions to the new Fiorano installer, follow these steps mentioned in the below sections.
Migration Steps
- Script migration handles fes.conf, fps.conf, and server.conf files.
- Only new changes done by the user will be moved to the new installer; old default configurations will automatically be updated by new default values from the new installer.
Ensure that you have closed all Fiorano applications.
Step 1: Set the required parameters in ScriptMigration.properties file
Before running the utility, perform the following actions:
- Go to the location $FIORANO_HOME/esb/FioranoMigration/bin/ to find the ScriptMigration.properties file.
Open the ScriptMigration.properties file from the location and provide values for the below properties in the file:
- OLD_FIORANO_HOME
- OLD_INSTALLER_BUILD
- LIST_OF_FILES
The values entered for these parameters are case sensitive.
Descriptions of the parameters in the Scripts Migration properties file are in the table below.
Property | Description |
---|---|
OLD_FIORANO_HOME | Path to old Fiorano Installer from which scripts are being migrated. Example
CODE
|
OLD_INSTALLER_BUILD | Provide the installer Build number of the previous installation from which scripts are being migrated It is important to provide correct build number of the installer as the set of changes done to Configs.xml file (to make it compatible with current version) depend on this value. Example
CODE
Check OLD_FIORANO_HOME\build.properties for the build number. |
LIST_OF_FILES | Provide the location of files which needs to be migrated, separated by comma(s) and space. Example
CODE
|
Step 2: Execute the Migration Script
Open console from the location $FIORANO_HOME/esb/FioranoMigration/bin and execute the following script:
Windows
migrate.bat -scripts
Linux
migrate.sh -scripts
The script files mentioned in the properties file above will be updated with changes done in the old installer.
In case the product is using third party jars, information about the same will be automatically updated in the serv.conf file.
How does the utility work?
The utility allows a direct copying of various server configurations or executable scripts from the old installation to the new Fiorano version and implements changes in these.
You have to provide the location of the files to be migrated in the ScriptMigration.properties file. The utility will make a copy of these files in the respective location of the new installer and implement the corresponding changes in these files to make them compatible with the new Fiorano version.