ThingWorx Flow > Installation and Configuration > Migrating ThingWorx Flow
Migrating ThingWorx Flow
You can migrate ThingWorx Flow 8.x installed on one machine to ThingWorx Flow 9.x installed on a separate machine by exporting the storage from ThingWorx Flow 8.x and importing it in ThingWorx Flow 9.x. You can also migrate ThingWorx Flow if you need to move ThingWorx Flow data from your preproduction system to production.
* 
For the purpose of this document, assume that the machine where ThingWorx Flow 8.x is installed is Machine A, and the machine where ThingWorx Flow 9.x is installed is Machine B.
Prerequisites
Before you migrate ThingWorx Flow, ensure that you meet the following prerequisites:
On machine A, there is an installation of ThingWorx Flow 8.x with different workflows that are created using different connections, triggers, authorizations and contain conditions, loops, custom actions, private connections (using users) and so on.
On machine B, there are the necessary privileges to install ThingWorx Foundation and ThingWorx Flow.
The appropriate ThingWorx Foundation 9.x version is downloaded from the PTC Software Downloads website.
The appropriate ThingWorx Flow 9.x version is downloaded from the PTC Software Downloads website.
Steps
The main steps of the process follow:
Step 1: Export ThingWorx Flow data to ThingWorx Storage
1. On machine A, log in to ThingWorx Composer as Administrator. Ensure that the Administrator belongs to the Administrators group.
2. In the left navigation pane, click , and select Export. The Export window opens.
3. In the Export Option list, select To Thingworx Storage.
4. Select the Universal Export check box to ensure that sensitive information is not exported.
5. Click Export. The exported folder named with current timestamp is created under <Thingworx_installation_path>\ThingWorx<DBtype>-<8.x>\ThingworxStorage\exports folder.
6. From <Thingworx_installation_path>\ThingWorx<DBtype>-<8.x>\ThingworxStorage\logs, open the relevant ApplicationLog.log file to verify that the export process completed successfully.
7. Back up the exported folder to a different machine or storage.
Step 2: Install ThingWorx Foundation and ThingWorx Flow on machine B
1. Install ThingWorx Foundation 9.x. For more information, see Installing ThingWorx.
2. Install ThingWorx Flow 9.x. For more information, see Installing ThingWorx Flow.
* 
You can install ThingWorx Foundation and ThingWorx Flow on the same machine, or you can install them on different machines. However, ensure that ThingWorx Foundation and ThingWorx Flow are installed on the same domain.
3. Start the ThingWorx Flow server
4. Run the LoadOAuthConfiguration service in ThingWorx Composer to load OAuths to the ThingWorx Flow server.
(Optional) Step 3: Deploy custom connectors on machine B
* 
Complete the steps in this section only if you have developed custom connectors using the ThingWorx Flow SDK.
1. Copy the custom connector source code to Machine B.
2. Navigate to the root directory of the connector and run the flow-deploy connector command.
For more information, see Deploying connectors.
3. Run the following command to seed the custom connector in the database:
flow-deploy migrate -u <Flow DB username> -p <Flow DB password> -s <Flow installation Directory>
Step 4: Import the exported data to the ThingWorx Foundation 9.x installation on machine B
1. Copy the backed up exported storage folder from Step 1 to <Thingworx_installation_path>\ThingworxStorage\exports on machine B.
2. On machine B, log in as Administrator to ThingWorx Composer. Ensure that the Administrator belongs to the Administrators group.
3. In the left navigation pane, click , and select Import. The Import window opens.
4. In the Import Option list, select From Thingworx Storage.
5. Select the folder that you copied to <Thingworx_installation_path>\ThingworxStorage\exports.
6. Click Import.
7. From <Thingworx_installation_path>\ThingworxStorage\logs, open the relevant ApplicationLog.log file to verify that the import process completed successfully.
(Optional) Step 5: Make configuration changes to ThingWorx Foundation and ThingWorx Flow
If needed, proceed to make configuration changes to the ThingWorx Foundation and the ThingWorx Flow services. For ThingWorx Flow information, see Configuring ThingWorx Flow. For information about ThingWorx Foundation updates, see ThingWorx configuration resources.
Step 6: Update connectors and triggers on machine B
1. On machine B, log in to ThingWorx Flow as Administrator.
2. On the ThingWorx Flow dashboard, verify that all connectors and triggers are imported. Notice that they have a icon in front of them. This indicates that they are incompletely configured since sensitive information was not exported, which is the result of selecting Universal Export during export.
3. Provide correct credentials for each connector.
4. Provide correct credentials and lookup information for all triggers.
Step 7: Verify that all ThingWorx Foundation and ThingWorx Flow data is imported, and workflows can be executed on machine B
1. On machine B, log in to ThingWorx Composer as Administrator.
2. In ThingWorx Composer, browse to Things and make sure that workflows under the Thing entities are imported.
3. On the ThingWorx Flow dashboard, verify that all workflows are imported.
Alternatively, open the Workflows entity, click Services and open any service. The workflow should appear and execute correctly.
4. Open the workflows and verify that you can edit and execute them.
5. Verify that you can create an Oauth (Session User) connector for any third-party service.
6. Verify that triggers are working correctly.
7. Verify that you can create a workflow, and while creating the workflow, add a category in the Workflow Editor.
You have successfully migrated ThingWorx Flow to machine B.
Was this helpful?