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 個月前檢視次數 266 次
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 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南