

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

# 為 Amazon RDS 建立多可用區域資料庫叢集快照
<a name="USER_CreateMultiAZDBClusterSnapshot"></a>

當您建立多可用區域資料庫叢集快照時，請務必找出要進行備份的多可用區域資料庫叢集，並為該資料庫叢集快照命名，以便您稍後可透過它進行還原。您也可以共用多可用區域資料庫叢集快照。如需說明，請參閱「[共用 Amazon RDS 的資料庫快照](USER_ShareSnapshot.md)」。

您可以使用 AWS 管理主控台、AWS CLI 或 RDS API 建立多可用區域資料庫叢集快照。

針對非常長期的備份，建議您將快照資料匯出至 Amazon S3。如果資料庫引擎的主要版本不再受到支援，您則無法從快照還原至該版本。如需詳細資訊，請參閱 [為 Amazon RDS 將資料庫快照資料匯出至 Amazon S3](USER_ExportSnapshot.md)。

## 主控台
<a name="USER_CreateMultiAZDBClusterSnapshot.CON"></a>

**建立資料庫叢集快照**

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

1. 在導覽窗格中，選擇 **Databases** (資料庫)。

1. 在清單中，選擇您要擷取快照的多可用區域資料庫叢集。

1. 針對 **Actions** (動作)，選擇 **Take snapshot** (建立快照)。

   **Take DB Snapshot** (建立資料庫快照) 視窗隨即顯示。

1. 在 **Snapshot name (快照名稱)** 中輸入快照的名稱。

1. 選擇 **Take Snapshot** (擷取快照)。

**Snapshots (快照)** 頁面隨即顯示，且新的多可用區域資料庫叢集快照的狀態顯示為 `Creating`。之後，其狀態為 `Available`，你可以看到其建立時間。

## AWS CLI
<a name="USER_CreateMultiAZDBClusterSnapshot.CLI"></a>

您可以使用 AWS CLI [ create-db-cluster-snapshot](https://docs.aws.amazon.com/cli/latest/reference/rds/create-db-cluster-snapshot.html) 命令搭配下列選項，建立多可用區域資料庫叢集快照：
+ `--db-cluster-identifier`
+ `--db-cluster-snapshot-identifier`

在此範例中，您為名為 *`mymultiazdbclustersnapshot`* 的資料庫叢集建立名為 *`mymultiazdbcluster`*的多可用區域資料庫叢集快照。

**Example**  
針對 Linux、macOS 或 Unix：  

```
1. aws rds create-db-cluster-snapshot \
2.     --db-cluster-identifier mymultiazdbcluster \
3.     --db-cluster-snapshot-identifier mymultiazdbclustersnapshot
```
針對 Windows：  

```
1. aws rds create-db-cluster-snapshot ^
2.     --db-cluster-identifier mymultiazdbcluster ^
3.     --db-cluster snapshot-identifier mymultiazdbclustersnapshot
```

## RDS API
<a name="USER_CreateMultiAZDBClusterSnapshot.API"></a>

您可以使用 Amazon RDS API [CreateDBClusterSnapshot](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_CreateDBClusterSnapshot.html) 操作搭配下列參數，建立多可用區域資料庫叢集快照：
+ `DBClusterIdentifier`
+ `DBClusterSnapshotIdentifier`

## 刪除多可用區域資料庫叢集快照
<a name="USER_DeleteMultiAZDBClusterSnapshot"></a>

當您不再需要時，可以刪除由 Amazon RDS 管理的多可用區域資料庫快照。如需說明，請參閱「[刪除 Amazon RDS 的資料庫快照](USER_DeleteSnapshot.md)」。