使用一个 RDS 的快照将数据库恢复到另一个现有 RDS

发布于 2025-01-14 01:53:06 字数 169 浏览 3 评论 0原文

我有 2 个正在使用的 RDS:

  1. Production RDS
  2. Preprod RDS

我正在寻找一种使用 Production RDS 快照的方法,并希望将数据恢复到现有的 Preprod RDS 中。

有什么办法可以做到这一点吗?

I have 2 RDS which are being used:

  1. Production RDS
  2. Preprod RDS

I am looking for a way to use the snapshot of the Production RDS and want to restore the data in to the existing Preprod RDS.

Is there any way to do this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

零時差 2025-01-21 01:53:06

您可以从快照启动新数据库。因此,您可以:

  • 创建生产数据库的快照
  • 删除 Preprod 数据库
  • 从快照启动新的 Preprod 数据库

然后 Preprod 数据库将包含快照的精确副本。

不可能将 Amazon RDS 快照恢复到现有数据库中。如果您希望将数据加载到现有数据库中,则需要使用自己的数据库工具来执行此操作 - AWS 不提供为您执行此操作的功能。

You can launch a new database from a snapshot. So, you could:

  • Create a Snapshot of the Production database
  • Delete the Preprod database
  • Launch a new Preprod database from the Snapshot

The Preprod database would then contain an exact copy of the Snapshot.

It is not possible to restore an Amazon RDS Snapshot into an existing database. If you wish to load the data into an existing database, you would need to do this with your own database tools -- AWS does not offer a function to do this for you.

知足的幸福 2025-01-21 01:53:06

将 Preprod RDS 实例与生产同步的一种潜在方法是使用 AWS DMS。使用 DMS,您可以将数据同步到现有的 Preprod 实例(无需删除该实例并创建新实例)。 DMS 的另一个潜在好处是能够在同步期间从 Preprod 环境中清除任何敏感数据。 此处描述了为此实施 DMS 的方法。

A potential approach for syncing a Preprod RDS instance with production is to use AWS DMS. Using DMS, you could sync the data into the existing Preprod instance (without deleting that instance and creating a new one). Another potential benefit of DMS is the ability to scrub any sensitive data from the Preprod environment during syncing. An approach for implementing DMS for this is described here.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文