Datastore Migration Utility

Overview

Data migration is the process of transferring data from one hardware or software configuration to another. It can be a standard yet crucial element of IT and business operations, allowing organizations the ability to maintain the integrity of important data while moving forward to face constantly changing technologies. The downside is that data migration is often time consuming and causes major disruptions due to downtime or application performance problems. As a result, Automate comes equipped with the Datastore Migration Utility, designed to effectively reduce the time, effort, and risk of migrating data between older and newer versions of Automate. This simple yet powerful tool exports the designated repository from the source database, imports it into the target database, and synchronizes the physical schema of the target database with the original schema definition of the source database. It can also be used during database upgrades or changes in database technologies by converting the Automate datastore from one database format to another without affecting the database functionality.

Accessing and using the Datastore Migration Utility

NOTE: Before using the Datastore Migration Utility, you must stop the Automate 2024 Management Server and Automate 2024 Execution Server services. Once migration is complete, you must restart these services before starting Automate 2024.

Stop the Automate 2024 services

  1. Close Automate 2024 Management Console.
  2. Press the Windows logo+R keys on your keyboard to open the Run window.
  3. Enter services.msc in the Open box, and then click OK.
  4. From the Services (Local) list, select Automate 2024 Management Server.
  5. From the Action menu, click Stop.
  6. From the Services (Local) list, select Automate 2024 Execution Server.
  7. From the Action menu, click Stop.
  8. Leave the Services window open so that you can restart these services later.

Accessing and using the Datastore Migration Utility

  1. Depending on your version of Automate 2024, go to the C:\Program Files (x86)\Automate 2024 or C:\Program Files\Automate 2024 directory, and then double-click on the DatastoreMigrationUtility.exe file to open the utility.
  2. The "Please verify both Automate services are stopped before continuing." message appears. If you have already stopped these services, as instructed above, disregard this message and click OK.
  3. On the Step 1 - Define source connection string window, select the Data store version you want to migrate.
  4. Depending on how you want to define the source connection string, select the option that fits your scenario:
    1. To use the XML file where the selected data store version originates from, select the Specify option. Click to browse to and select the Server Properties.xml or ExecutionServer.config.xml file, based on the Data store option you chose.
    2. If your data store originates from an external database, select the Define data store connection string option, and then populate the following parameters:
      1. From the Data store Type list, select the proper database type.
      2. In the Server field, enter the computer name or IP address of where the database runs.
      3. In the Database field, enter the name of the database server.
      4. Select the Use Windows Authentication or Use Database authentication option, based on the username and password credentials you want to use.
      5. In the Username field, enter the username to use to connect to the server (if required).
      6. In the Password field, enter the password to use to connect to the server (if required).
      7. Click Test to test the database connection.

        NOTE: Testing is only available for the BPA 7 Data store, BPA 8 Data store, or BPA 9 Data store options in the 32-bit (x86) version of Automate 2024.
  5. Click Next.
  6. On the Step 2 - Define destination connection string window, select the option that fits your scenario:
    1. If your Automate data store points to the ExecutionServer.config.xml file, select the Specify Automate 2024 "ExecutionServer.config.xml" file option. Select to browse to and select the ExecutionServer.config.xml file.
    2. If your data store originates from an external database, select the Define data store connection string option, and then populate the following parameters:
      1. From the Data store Type list, select the proper database type.
      2. In the Server field, enter the computer name or IP address of where the database runs.
      3. In the Database field, enter the name of the database server.
      4. Select the Use Windows Authentication or Use Database authentication option, based on the username and password credentials you want to use.
      5. In the Username field, enter the username to use to connect to the server (if required).
      6. In the Password field, enter the password to use to connect to the server (if required).
      7. Click Test to test the database connection.

        NOTE: Testing is only available for the BPA 7 Data store, BPA 8 Data store, or BPA 9 Data store options in the 32-bit (x86) version of Automate 2024.
  7. On the Step 3 - Select Data to Migrate window, all available data items that can be migrated are selected by default. Clear any items you do not want to migrate. When finished, click Next.
  8. On the Confirm? dialog, verify if all source and destination preferences are correct. Click Yes to continue with the migration. Otherwise, click No, and then click Back to make any adjustments. 
  9. On the Step 4 - Migrate Data window, the migration's progress is displayed . When the migration is complete, click Finished.

Restart the Automate 2024 services

  1. Return to the Services window.
  2. From the Services (Local) list, select Automate 2024 Execution Server.
  3. From the Action menu, click Start.
  4. From the Services (Local) list, select Automate 2024 Management Server.
  5. From the Action menu. click Start.
  6. Close the Services window.
  7. Open Automate 2024 Management Console.