

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

# 停用 Amazon RDS 的自動備份複寫
<a name="AutomatedBackups.StopReplicating"></a>

您可以使用 Amazon RDS 主控台停止資料庫執行個體的備份複寫。您也可以使用 `stop-db-instance-automated-backups-replication` AWS CLI 命令或 `StopDBInstanceAutomatedBackupsReplication` RDS API 操作。

複寫備份的保留時間將視建立時所設定的備份保留期限而定。

## 主控台
<a name="AutomatedBackups.StopReplicating.Console"></a>

從來源區域的 **Automated backups (自動備份)** 頁面停止備份複寫。

**如要停止備份複寫至 AWS 區域**

1. 登入 AWS 管理主控台，開啟位於 [https://console.aws.amazon.com/rds/](https://console.aws.amazon.com/rds/) 的 Amazon RDS 主控台。

1. 從 **Region selector (區域選取器)** 選擇來源區域。

1. 在導覽窗格中，選擇 **Automated backups** (自動備份)。

1. 在 **Current Region (目前區域)** 標籤上，選擇您要停止備份複寫的資料庫執行個體。

1. 針對 **Actions** (動作)，選擇 **Manage cross-Region replication** (管理跨區域複寫)。

1. 在 **Backup replication** (備份複寫) 下，清除 **Enable replication to another AWS 區域** (啟用複寫至另一個 AWS 區域) 核取方塊。

1. 選擇**儲存**。

複寫的備份會列在目的地區域 **Automated backups (自動備份)** 頁面的 **Retained (保留)** 標籤上。

## AWS CLI
<a name="AutomatedBackups.StopReplicating.CLI"></a>

使用 [https://docs.aws.amazon.com/cli/latest/reference/rds/stop-db-instance-automated-backups-replication.html](https://docs.aws.amazon.com/cli/latest/reference/rds/stop-db-instance-automated-backups-replication.html) AWS CLI 命令停止備份複寫。

下列 CLI 範例會停止在 美國西部 (奧勒岡) 區域中複寫資料庫執行個體的自動備份。

**停止備份複寫**
+ 請執行下列其中一個命令：

  對於 Linux、macOS 或 Unix：

  ```
  aws rds stop-db-instance-automated-backups-replication \
  --region us-east-1 \
  --source-db-instance-arn "arn:aws:rds:us-west-2:123456789012:db:mydatabase"
  ```

  在 Windows 中：

  ```
  aws rds stop-db-instance-automated-backups-replication ^
  --region us-east-1 ^
  --source-db-instance-arn "arn:aws:rds:us-west-2:123456789012:db:mydatabase"
  ```

## RDS API
<a name="AutomatedBackups.StopReplicating.API"></a>

使用具有下列參數的 [https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_StopDBInstanceAutomatedBackupsReplication.html](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_StopDBInstanceAutomatedBackupsReplication.html) RDS API 操作停止備份複寫：
+ `Region`
+ `SourceDBInstanceArn`