- 概述
- 要求
- 安装
- 安装后
- 迁移和升级
- 监控和警示
- 集群管理
- 特定于产品的配置
- 故障排除
还原备份
要还原集群,请执行以下步骤:
步骤 1:配置 Kubernetes 集群
在还原之前,请确保配置要还原的 Kubernetes 集群。
For details, see Prerequisites.
步骤 2:还原 SQL Server 和对象存储
由于 SQL Server 和对象存储是外部组件,因此请确保在还原 Automation Suite 集群之前还原了它们。
不允许在还原操作期间更改 FQDN。 确保保留 Automation Suite 集群、SQL Server、对象存储、Redis 和文件存储的 FQDN。
步骤 3:提供快照配置
Provide the snapshot configuration, such as objectstore, where the backup data is stored. This configuration is similar to the one you provided during the backup configuration. For details, see Configuring the backup store.
步骤 4:选择要还原的快照
To identify the backup you want to restore, see Listing the existing snapshots.
选择与 SQL Server 和对象存储数据相关的快照非常重要。 如果生成 Automation Suite 集群快照的时间与生成外部存储组件快照的时间之间存在巨大差异,则可能会发生不兼容性。
步骤 5:运行还原脚本
要还原选定的快照,请运行以下命令:
./uipathctl snapshot restore create <restore_name> --from-snapshot <snapshot_name>
./uipathctl snapshot restore create <restore_name> --from-snapshot <snapshot_name>
还原命令需要还原名称,您可以使用它来获取还原状态,并在发生任何故障时进行调试。
此操作需要一些时间才能完成,并且在后台运行。 您可以使用 history 命令查看状态,如下一节所述。
已知问题:在某些情况下,还原操作可能会卡住。如果还原操作卡住,则应手动删除restore对象,然后重试还原操作。
调试还原
要调试还原操作,您可以使用 history 和 log 命令。
历史记录:
./uipathctl snapshot restore history
# Output Example
NAME STATUS CREATED EXPIRATION
prefix-scheduled-xx1 Completed xx1 xx1
prefix-scheduled-xx2 Failed xx2 xx2
test-snapshot-xx3 Failed xx3 xx3
./uipathctl snapshot restore history
# Output Example
NAME STATUS CREATED EXPIRATION
prefix-scheduled-xx1 Completed xx1 xx1
prefix-scheduled-xx2 Failed xx2 xx2
test-snapshot-xx3 Failed xx3 xx3
日志:
./uipathctl snapshot restore logs restore_1
./uipathctl snapshot restore logs restore_1