How to migrate a Leapwork Trial or Platform Controller from one machine to another, 2018.1 onwards

How to migrate a Leapwork Trial or Platform Controller from one machine to another, 2018.1 onwards

There are times when it may be necessary to move the Leapwork Controller from one machine to another, either because you gained a new machine and data storage, or you are impacted by various other factors. For whatever reason, a migration is necessary in order to transfer flow data and other files from an old Controller to the new Controller.

Database key backup

Before beginning with data migration, ensure that you have a database encryption key for all stored data in Leapwork, as assets are encrypted and stored in an embedded SQLite database.

A restored Leapwork system could include the creation of a new Controller machine. In order for the new Controller to read restored SQLite files, a decryption key is necessary. If Leapwork Studio has not been previously connected to a specific Controller, you will receive a prompt to enter a valid encryption key for all SQLite files. Therefore, it is important to maintain a backup/restore strategy to secure the SQLite decryption key files.

Access the Decryption Key

  1. Open Leapwork Studio
  2. Go to Settings
  3. Click on Controller Settings
  4. Right-click on the Controller instance that you want to access
  5. Click the option Show database encryption key and it will display the key needed to access the database files.

Note, the database encryption key is generated by and locally stored in your Controller instance. It is not accessible to the Leapwork staff, as Leapwork will not be able to assist you in retrieving this key. Additionally, this key is unique to each Controller instance – if you need the key for all Controllers in your environment, you must repeat the above instructions for each Controller instance.

Migration of a Controller

For example, Machine A is hosting an old Controller and Machine B will host a new Controller. The following procedures should be performed on both machines.

Machine A: Old Controller (2018.1 or above)

Before beginning with Controller migration, perform a backup of the latest data.

Prepare the backup

Please refer to the article How to Backup and Restore Leapwork database to read more about the backup process.

Migrate to a new Controller

Once you have the database encryption key and database backup, you are ready for migration. Review the following steps:

Machine B: New Controller (2018.1 or above)

If you have any questions, contact our Priority Support.