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.

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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠