選取您的 Cookie 偏好設定

我們使用提供自身網站和服務所需的基本 Cookie 和類似工具。我們使用效能 Cookie 收集匿名統計資料,以便了解客戶如何使用我們的網站並進行改進。基本 Cookie 無法停用,但可以按一下「自訂」或「拒絕」以拒絕效能 Cookie。

如果您同意,AWS 與經核准的第三方也會使用 Cookie 提供實用的網站功能、記住您的偏好設定,並顯示相關內容,包括相關廣告。若要接受或拒絕所有非必要 Cookie,請按一下「接受」或「拒絕」。若要進行更詳細的選擇,請按一下「自訂」。

從 Amazon 的複寫備份還原至指定的時間 RDS

焦點模式
從 Amazon 的複寫備份還原至指定的時間 RDS - Amazon Relational Database Service

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

您可以使用 Amazon RDS主控台,從複寫備份將資料庫執行個體還原至特定時間點。您也可以使用 restore-db-instance-to-point-in-time AWS CLI 命令或 RestoreDBInstanceToPointInTimeRDSAPI操作。

如需復原的 point-in-time一般資訊 (PITR),請參閱 將資料庫執行個體還原至 Amazon 的指定時間 RDS

注意

請注意,在 中複寫自動備份時,下列資料庫引擎限制 AWS 區域:

  • 在 RDS for SQL Server 上,不會複製選項群組。

  • 在 RDS for Oracle 上,不會複製下列選項:NATIVE_NETWORK_ENCRYPTIONOEM_AGENTOEMSSL

如果您已將自訂選項群組與 資料庫執行個體相關聯,則可以在目的地區域中重新建立該選項群組。然後還原目的地區域中的資料庫執行個體,並將自訂選項群組與其關聯。如需詳細資訊,請參閱 使用選項群組

從複寫備份將資料庫執行個體還原至指定的時間
  1. 登入 AWS Management Console 並在 開啟 Amazon RDS主控台https://console.aws.amazon.com/rds/

  2. 從區域選取器中選擇目的地區域 (將備份複製到的位置)。

  3. 在導覽窗格中,選擇 Automated backups (自動備份)。

  4. Replicated backups (複寫備份) 標籤上,選擇要還原的資料庫執行個體。

  5. 針對 Actions (動作),選擇 Restore to point in time (還原至時間點)。

  6. 選擇 Latest restorable time (最近的可還原時間) 以還原最近一次的可能時間,或選擇 Custom (自訂) 以選擇一個時間。

    如果您選擇 Custom (自訂),請輸入您希望執行個體還原到什麼日期和時間。

    注意

    時間會顯示在您的本機時區中,以國際標準時間 () 的偏移表示UTC。例如,UTC-5 是東部標準時間/中部夏令時間。

  7. 對於 DB Instance Identifier (資料庫執行個體識別符),輸入目標還原資料庫執行個體的名稱。

  8. (選用) 視需要選擇其他選項,例如啟用自動調整規模。

  9. 選擇 Restore to point in time (還原至時間點)

從複寫備份將資料庫執行個體還原至指定的時間
  1. 登入 AWS Management Console 並在 開啟 Amazon RDS主控台https://console.aws.amazon.com/rds/

  2. 從區域選取器中選擇目的地區域 (將備份複製到的位置)。

  3. 在導覽窗格中,選擇 Automated backups (自動備份)。

  4. Replicated backups (複寫備份) 標籤上,選擇要還原的資料庫執行個體。

  5. 針對 Actions (動作),選擇 Restore to point in time (還原至時間點)。

  6. 選擇 Latest restorable time (最近的可還原時間) 以還原最近一次的可能時間,或選擇 Custom (自訂) 以選擇一個時間。

    如果您選擇 Custom (自訂),請輸入您希望執行個體還原到什麼日期和時間。

    注意

    時間會顯示在您的本機時區中,以國際標準時間 () 的偏移表示UTC。例如,UTC-5 是東部標準時間/中部夏令時間。

  7. 對於 DB Instance Identifier (資料庫執行個體識別符),輸入目標還原資料庫執行個體的名稱。

  8. (選用) 視需要選擇其他選項,例如啟用自動調整規模。

  9. 選擇 Restore to point in time (還原至時間點)

使用 restore-db-instance-to-point-in-time AWS CLI 命令建立新的資料庫執行個體。

從複寫備份將資料庫執行個體還原至指定的時間
  • 請執行下列其中一個命令:

    用於 Linux, macOS、 或 Unix:

    aws rds restore-db-instance-to-point-in-time \ --source-db-instance-automated-backups-arn "arn:aws:rds:us-east-1:123456789012:auto-backup:ab-L2IJCEXJP7XQ7HOJ4SIEXAMPLE" \ --target-db-instance-identifier mytargetdbinstance \ --restore-time 2020-10-14T23:45:00.000Z

    用於 Windows:

    aws rds restore-db-instance-to-point-in-time ^ --source-db-instance-automated-backups-arn "arn:aws:rds:us-east-1:123456789012:auto-backup:ab-L2IJCEXJP7XQ7HOJ4SIEXAMPLE" ^ --target-db-instance-identifier mytargetdbinstance ^ --restore-time 2020-10-14T23:45:00.000Z

使用 restore-db-instance-to-point-in-time AWS CLI 命令建立新的資料庫執行個體。

從複寫備份將資料庫執行個體還原至指定的時間
  • 請執行下列其中一個命令:

    用於 Linux, macOS、 或 Unix:

    aws rds restore-db-instance-to-point-in-time \ --source-db-instance-automated-backups-arn "arn:aws:rds:us-east-1:123456789012:auto-backup:ab-L2IJCEXJP7XQ7HOJ4SIEXAMPLE" \ --target-db-instance-identifier mytargetdbinstance \ --restore-time 2020-10-14T23:45:00.000Z

    用於 Windows:

    aws rds restore-db-instance-to-point-in-time ^ --source-db-instance-automated-backups-arn "arn:aws:rds:us-east-1:123456789012:auto-backup:ab-L2IJCEXJP7XQ7HOJ4SIEXAMPLE" ^ --target-db-instance-identifier mytargetdbinstance ^ --restore-time 2020-10-14T23:45:00.000Z

若要將資料庫執行個體還原至指定的時間,請使用下列參數呼叫 RestoreDBInstanceToPointInTime Amazon RDSAPI操作:

  • SourceDBInstanceAutomatedBackupsArn

  • TargetDBInstanceIdentifier

  • RestoreTime

若要將資料庫執行個體還原至指定的時間,請使用下列參數呼叫 RestoreDBInstanceToPointInTime Amazon RDSAPI操作:

  • SourceDBInstanceAutomatedBackupsArn

  • TargetDBInstanceIdentifier

  • RestoreTime

隱私權網站條款Cookie 偏好設定
© 2025, Amazon Web Services, Inc.或其附屬公司。保留所有權利。