UiPath Documentation
automation-suite
2.2510
true
Linux 版 Automation Suite 安装指南
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。

在对象存储之间迁移数据

在 Automation Suite 集群之间迁移对象存储数据,或创建对象存储数据的一次性备份。

如果要执行以下任何操作,则可能需要迁移对象存储数据:

  • 对对象存储中的数据进行一次性备份;
  • 将对象存储数据从一个 Automation Suite 集群迁移到另一个集群。

要求

在开始对象存储数据迁移之前,请确保满足以下要求:

  • 您已下载以下文件:

  • 您具有下载和上传到对象存储所需的临时存储空间。 临时存储的大小取决于对象存储中存储的数据的大小。 要确定所需的存储大小,请在任何服务器节点上运行以下命令:

    object_size=$(kubectl -n rook-ceph exec deploy/rook-ceph-tools -- ceph status --format json | jq -r '.pgmap.data_bytes')
    echo "You need '$(numfmt --to=iec-i $object_size)' storage space"
    object_size=$(kubectl -n rook-ceph exec deploy/rook-ceph-tools -- ceph status --format json | jq -r '.pgmap.data_bytes')
    echo "You need '$(numfmt --to=iec-i $object_size)' storage space"
    

正在准备离线安装

重要提示:

本节中的说明仅适用于离线安装 Automation Suite 的情况。您可能必须在下载对象存储数据的计算机和上传对象存储数据的计算机上执行这些步骤。

在具有根访问权限的任何服务器节点上执行以下步骤。

  1. 在离线安装中登录到私有 Docker 注册表:

    dpr_username=$(grep -m1 'username:' /etc/rancher/rke2/registries.yaml | awk -F 'username:' '{print $2}' | tr -d ' ')
    dpr_password=$(grep -m1 'password:' /etc/rancher/rke2/registries.yaml | awk -F 'password:' '{print $2}' | tr -d ' ')
    
    podman login localhost:30071 --username ${dpr_username} --password ${dpr_password} --tls-verify=false
    dpr_username=$(grep -m1 'username:' /etc/rancher/rke2/registries.yaml | awk -F 'username:' '{print $2}' | tr -d ' ')
    dpr_password=$(grep -m1 'password:' /etc/rancher/rke2/registries.yaml | awk -F 'password:' '{print $2}' | tr -d ' ')
    
    podman login localhost:30071 --username ${dpr_username} --password ${dpr_password} --tls-verify=false
    
  2. 将实用程序 tarball 推送到私有 Docker 注册表:

    1. 确保已将实用程序 tarball 复制到服务器节点,然后导航到其位置。
    2. 通过运行以下命令,提取映像并将其上传到私有 Docker 注册表:
      gzip -dk -c automation-suite-util.tar.gz > sf-k8-utils-rhel_24_10_2.tar
      podman load -i sf-k8-utils-rhel_24_10_2.tar
      podman push --tls-verify=false localhost:30071/uipath/sf-k8-utils-rhel:24.10.2
      gzip -dk -c automation-suite-util.tar.gz > sf-k8-utils-rhel_24_10_2.tar
      podman load -i sf-k8-utils-rhel_24_10_2.tar
      podman push --tls-verify=false localhost:30071/uipath/sf-k8-utils-rhel:24.10.2
      

从对象存储下载数据

备注:

在继续以下步骤之前,请确保服务器节点上有可用的存储空间来进行对象存储备份。

  1. objectstore-migration.sh脚本复制到您已在其中确定可用于备份的存储的服务器节点。

  2. 导航到已复制迁移脚本的文件夹。

  3. 通过运行以下命令备份对象存储数据:

    备注:

    在运行主脚本之前,请确保提供将存储备份数据的绝对文件夹路径。 使用CEPH_BACKUP_PATH变量指定路径。

    export CEPH_BACKUP_PATH=/ceph/backup/path # please replace /ceph/backup/path with the path where you want to take the backup
    export CEPH_OPERATION=backup 
    ./objectstore-migration.sh
    export CEPH_BACKUP_PATH=/ceph/backup/path # please replace /ceph/backup/path with the path where you want to take the backup
    export CEPH_OPERATION=backup 
    ./objectstore-migration.sh
    
  4. 如果备份成功,您应该会看到以下输出:

    job.batch/ceph-objectstore-ondemand-backup-job created
    job.batch/ceph-objectstore-ondemand-backup-job condition met
    job.batch/ceph-objectstore-ondemand-backup-job created
    job.batch/ceph-objectstore-ondemand-backup-job condition met
    

将数据上传到对象存储

重要提示:

如果您将数据上传到其他 Automation Suite 对象存储,请确保上一部分中备份的数据在任何服务器节点上可用。您可以将磁盘装载到新集群的服务器节点上,也可以通过您喜欢的任何其他方式传输数据。

要将数据上传到对象存储,请执行以下步骤:

  1. objectstore-migration.sh脚本复制到您已在其中确定可用于备份的存储的服务器节点。

  2. 导航到已复制迁移脚本的文件夹。

  3. 通过运行以下命令,将数据上传到对象存储:

    备注:

    在运行主脚本之前,请确保提供将备份数据复制到对象存储的绝对文件夹路径。 使用CEPH_BACKUP_PATH变量指定路径。

    export CEPH_BACKUP_PATH=/ceph/backup/path 
    export CEPH_OPERATION=restore
    export CEPH_RESTORE_CLEAN=true # set this to false to allow restore without deleting existing data
    ./objectstore-migration.sh
    export CEPH_BACKUP_PATH=/ceph/backup/path 
    export CEPH_OPERATION=restore
    export CEPH_RESTORE_CLEAN=true # set this to false to allow restore without deleting existing data
    ./objectstore-migration.sh
    
  4. 如果上传成功,您应该会看到以下输出:

    job.batch/ceph-objectstore-ondemand-restore-job created
    job.batch/ceph-objectstore-ondemand-restore-job condition met
    job.batch/ceph-objectstore-ondemand-restore-job created
    job.batch/ceph-objectstore-ondemand-restore-job condition met
    

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新