Windows Import Procedure
The Windows import procedure includes the following steps:
| • | Step 1: Export from Old Server |
| • | Step 2: Copy Required Files (New Machine Only) |
| • | Step 3: Ensure 2.x Service is Installed |
| • | Step 4: Import the Database |
| • | Step 5: Start the Service |
| • | Step 6: Verify Migration |
| • | Step 7: Verify H2 Database Version |
Important:Run all commands in a Command Prompt as an Administrator.
Step 1: Export from Old Server
To export from the old server:
Complete the steps in Windows Export Procedure.
Step 2: Copy Required Files (New Machine Only)
To copy required files:
| 1. | Copy both of these files from the old machine to the new machine: |
flexnetls-h2-1-4-x-migration-source.data (migration file)
flexnetls_licenses.ks (keystore file)
| 2. | Place these files into the following directory on the new machine: |
C:\Windows\ServiceProfiles\NetworkService\flexnetls\<publisher>\
This ensures correct decryption and database initialization.
Step 3: Ensure 2.x Service is Installed
To ensure the 2.x service is installed:
| 1. | Run the following command: |
flexnetls.bat -install
To import the database:
| 1. | Run the following command: |
flexnetls.bat -import-database
| 2. | This command imports data into a new H2 2.x database. It automatically detects the correct data directory. |
To start the service:
| 1. | Run the following command: |
flexnetls.bat -start
To verify migration:
| 1. | Check the log by entering the following command: |
type "<trusted-storage-dir>\logs\h2-2x-migration-import.log"
| 2. | Perform an optional API check: |
curl http://localhost:7070/api/1.0/instances
| 3. | These steps confirm that the migration completed successfully and that the service is operating correctly. |
Step 7: Verify H2 Database Version
Note:Ensure that the server is installed successfully and is running and accessible.
Starting with the 2026.07 release, the current H2 database version can be verified using the following methods.
Method 1: H2 Version Endpoint
| • | Endpoint: /api/1.0/h2version |
| • | Example: http://localhost:7070/api/1.0/h2version |
Method 2: Health Endpoint
The H2 database version is also exposed through the /api/1.0/health endpoint.
The version information is available under the database section of the health response.