还原 Neptune 集群 - Amazon Backup
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

还原 Neptune 集群

使用 Amazon Backup 控制台恢复 Amazon Neptune 恢复点

还原 Amazon Neptune 数据库需要指定多个还原选项。有关这些选项的信息,请参阅《Neptune 用户指南》中的从数据库集群快照还原

还原 Neptune 数据库
  1. 打开 Amazon Backup 控制台,网址为 https://console.aws.amazon.com/backup

  2. 在导航窗格中,选择受保护的资源和要还原的 Neptune 资源 ID。

  3. Resource details (资源详细信息) 页面上,将显示所选资源 ID 的恢复点列表。要还原资源,请在备份窗格中,选择资源的恢复点 ID 旁边的单选按钮。在窗格的右上角,选择还原

  4. 实例规格窗格中,接受默认值或指定数据库引擎版本

  5. 设置窗格中,为当前区域中您拥有的所有数据库集群实例指定一个唯一 Amazon Web Services 账户 的名称。数据库集群标识符不区分大小写,但它以全小写形式存储,例如“mydbclusterinstance”。此字段为必填字段。

  6. 数据库选项窗格中,接受数据库端口数据库集群参数组的默认值或指定这些选项。

  7. 加密) 窗格中,接受启用加密禁用加密设置的默认值或指定这些选项。

  8. 日志导出窗格中,选择要发布到 Amazon Logs 的 CloudWatch 日志类型。已定义 IAM 角色

  9. 还原角色窗格中,选择 Amazon Backup 将为此还原担任的 IAM 角色。

  10. 指定所有设置后,选择还原备份

    这将显示还原作业窗格。页面顶部的消息提供了有关还原作业的信息。

  11. 还原完成后,将还原的 Neptune 集群连接到 Amazon RDS 实例。

使用 Amazon Backup API、CLI 或 SDK 恢复 Neptune 恢复点

首先,还原您的集群。使用 StartRestoreJob。在 Amazon DocumentDB 还原期间,您可以指定以下元数据:

availabilityZones backtrackWindow copyTagsToSnapshot // Boolean databaseName // string dbClusterIdentifier // string dbClusterParameterGroupName // string dbSubnetGroupName // string enableCloudwatchLogsExports // string enableIAMDatabaseAuthentication // Boolean engine // string engineMode // string engineVersion // string kmsKeyId // string port // integer optionGroupName // string ScalingConfiguration pcSecurityGroupIds // string

然后,使用 create-db-instance 将还原后的 Neptune 集群连接到 Amazon RDS 实例。

  • 对于 Linux、macOS 或 Unix:

    aws neptune create-db-instance --db-instance-identifier sample-instance \ --db-instance-class db.r5.large --engine neptune --engine-version 1.0.5.0 --db-cluster-identifier sample-cluster --region us-east-1
  • 对于 Windows:

    aws neptune create-db-instance --db-instance-identifier sample-instance ^ --db-instance-class db.r5.large --engine neptune --engine-version 1.0.5.0 --db-cluster-identifier sample-cluster --region us-east-1

有关更多信息,请参阅《Neptune Management API 参考》中的 RestoreDBClusterFromSnapshot 和《Neptune CLI 指南》中的 restore-db-cluster-from-snapshot