Automation Suite
2023.10
false
Banner background image
Automation Suite on Linux Installation Guide
Last updated Apr 19, 2024

Migrating the data to the new cluster

Offline only

  1. Hydrate the docker registry running on the source cluster with the bundle corresponding to the version to which you plan to upgrade. Make sure to download as.tar.gz on the server machine of the source cluster where you attacted the UiPath® bundle disk on the /uipath mount point. The preferred location is /uipath/<new_version>/as.tar.gz.
  2. Create a temporary location to untar the bundle.

    mkdir -p /uipath/tmpmkdir -p /uipath/tmp
  3. Hydrate the source cluster docker registry with the latest offline bundle.

    ./configureUipathAS.sh registry upload --offline-bundle /uipath/<new_version>/as.tar.gz --offline-tmp-folder /uipath/tmp./configureUipathAS.sh registry upload --offline-bundle /uipath/<new_version>/as.tar.gz --offline-tmp-folder /uipath/tmp
Note:

You can run the data migration script before putting the cluster in maintenance mode to reduce the migration time during the downtime period.

Cloning your source cluster databases

Important:
  • You can allow the installer to create the new databases with the default names during the infrastructure and fabric installation. For details, see Configuring the Microsoft SQL Server.

  • If your database names are different, you must delete the databases created by the installer, copy the databases from the source SQL Server to the new SQL Server, and retain the database names.

  • If you choose to change the name of the database in the new SQL Server, you must carefully edit the cluster_config.json file for each product you install.
  1. Make sure to get the new installer on your source cluster to migrate the data to the new target cluster. Follow the steps in Downloading the installation packages and getting them on the machines on the one of the server nodes of the source cluster from where you plan to trigger the migration.

  2. Put the source cluster in maintenance mode:

    ./configureUiPathAS.sh enable-maintenance-mode./configureUiPathAS.sh enable-maintenance-mode
    Important:

    Downtime starts now.

  3. Copy your databases to the target cluster using your preferred method. For example, you could use the Copy Database Wizard.

Cloning your source cluster data

  1. Get the target_kubeconfig file of the target cluster to perform the data migration by running the following command:
    ./configureUiPathAS.sh kubeconfig get --migration./configureUiPathAS.sh kubeconfig get --migration
    Note: The target_kubeconfig file is required to fetch the information of the target in-cluster objectstore and perform the data copy needed for the target version.
  2. Copy the file generated to the source cluster. You will need to use this file during the data migration.

  3. Copy the data from source cluster to the target cluster by running the data migration script on the source cluster.

    cd /opt/UiPathAutomationSuite/<new_version>/installer/bin
    uipathctl cluster migration run cluster_config.json --target-kubeconfig <target_kubeconfig> --versions versions.jsoncd /opt/UiPathAutomationSuite/<new_version>/installer/bin
    uipathctl cluster migration run cluster_config.json --target-kubeconfig <target_kubeconfig> --versions versions.json
    Note:
    • The previous migration command is idempotent. If the command fails in between due to network connectivity, you can re-run it, and it will continue the migration process from where it was left off.
    • Optionally, you can perform a differential sync of the data migration by running the migration command again.
  4. If you use an external objectstore in the source cluster, clone the objectstore buckets.

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.