RDS pre-upgrade double snapshot backup sequence

0

I noticed that RDS creates two snapshots before upgrading an instance:

"rds:{InstanceID}-{current-datetime}"

Shuts down instance...

"rds:preupgrade-{InstanceID}-{old-version}-to-{new-version}-{autoid}"

I was curious to know why.

profile picture
已提问 4 个月前265 查看次数
2 回答
1

Hi,

I've came across the same situation where my RDS instance off-line patches has been applied. Then i came across this blog https://jayendrapatil.com/aws-rds-db-maintenance-upgrades/ to understand the reasons behind it.

DB instance will go offline while performing any OS level upgrades, engine version major upgrades.

profile picture
已回答 4 个月前
  • That blog post doesn't mention two snapshots being taken before upgrade - only one:

    "RDS takes two DB snapshots during the upgrade process. First DB snapshot is of the DB instance before any upgrade changes have been made. If the upgrade fails, it can be restored from the snapshot to create a DB instance running the old version. Second DB snapshot is taken when the upgrade completes. After the upgrade is complete, database engine can’t be reverted to the previous version. For returning to the previous version, restore the first DB snapshot taken to create a new DB instance."

1

In this case two snapshots serve as backup measures to minimize data loss and ensure that you have recovery options in case of any problems during the upgrade process. The first snapshot captures the state just before the upgrade, while the second snapshot captures the state after the instance has been shut down and is ready for the upgrade. This dual-snapshot approach is a best practice in ensuring the resilience and reliability of your database during upgrades.

profile picture
Jagan
已回答 4 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则