This document shows how to migrate a system from one IoT Enterprise environment to another.
PREREQUISITES:
Before migrating, make sure -
-
Both platforms are on the same version.
-
The user performing the migration is an Administrator on both environments.
KNOWN ISSUES:
-
If there is a custom column in the Edges table, the migration will fail. To overcome this issue:
-
Delete the custom column from the source system before migration.
-
Perform the migration (i.e. without the custom column).
-
Add the custom column to both systems after the migration is done.
-
STEPS:
Let's say you want to migrate system S1 from environment E1 (source) to environment E2 (destination).
-
Go to S1 On E1.
-
Go to the Messages page and subscribe to the following topics:
-
$notification/migration/status- Gives you migration status updates -
$notification/migration/error- Gives you migration status errors
-
-
Send a GET request to
/admin/systemmigration/generatecredentialson E1 to generate a temporary username and password.
This is an ADMIN endpoint so it requires a ClearBlade-DevToken header set to the token of a Developer on E1. -
Once you get a temporary username and password, send a POST request to
/admin/systemmigration/migrateon E2 to start the migration process. The POST body is as follows:Username string `json:"username"` // generated from the step 3b Password string `json:"password"` // generated from the step 3b SystemKey string `json:"system_key"` // system key to be migrated RemotePlatformURL string `json:"remote_platform_url"` // url of E1 without the 'https://'' prefix (e.g. community.clearblade.com) RemotePlatformPort string `json:"remote_platform_port"` // can skip thisThis is an ADMIN endpoint so it requires a ClearBlade-DevToken header set to the token of a Developer on E2.
Sending the request causes the migration to start. -
Note that the new system on E2 will be initially disabled. It will need to be re-enabled from the Admin tab.