

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

# 使用 AWS CLI 或 Amazon RDS API 複製未加密的資料庫叢集快照
<a name="USER_CopyDBClusterSnapshot.Unencrypted.CrossRegion"></a>

使用下列各節中的程序，透過使用 AWS 管理主控台 AWS CLI、 或 Amazon RDS API 來複製未加密的資料庫叢集快照。

若要取消已開始進行的複製操作，請在資料庫叢集快照處於 **copying** (複製中) 狀態時，刪除 `--target-db-cluster-snapshot-identifier` 或 `TargetDBClusterSnapshotIdentifier` 所識別的目標資料庫叢集快照。

## 主控台
<a name="USER_CopyDBClusterSnapshot.Unencrypted.CrossRegion.Console"></a>

若要使用 複製資料庫叢集快照 AWS 管理主控台，請參閱 [使用 複製資料庫叢集快照 AWS 管理主控台](USER_CopyDBClusterSnapshot.CrossRegion.md)。

## AWS CLI
<a name="USER_CopyDBClusterSnapshot.Unencrypted.CrossRegion.CLI"></a>

若要複製資料庫叢集快照，請使用 AWS CLI [copy-db-cluster-snapshot](https://docs.aws.amazon.com/cli/latest/reference/rds/copy-db-cluster-snapshot.html) 命令。如果您要將快照複製到另一個快照 AWS 區域，請在要複製快照 AWS 區域 的 中執行 命令。

下列選項用來複製未加密的資料庫叢集快照：
+ `--source-db-cluster-snapshot-identifier` – 要複製之資料庫叢集快照的識別符。如果您要將快照複製到另一個快照 AWS 區域，此識別符必須是來源的 ARN 格式 AWS 區域。
+ `--target-db-cluster-snapshot-identifier` – 資料庫叢集快照之新副本的識別符。

下列程式碼會在執行命令 AWS 區域 的 `myclustersnapshotcopy`中建立`arn:aws:rds:us-east-1:123456789012:cluster-snapshot:aurora-cluster1-snapshot-20130805`名為 的資料庫叢集快照複本。建立副本時，原始快照的所有標籤會複製到快照副本。

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

```
aws rds copy-db-cluster-snapshot \
  --source-db-cluster-snapshot-identifier arn:aws:rds:us-east-1:123456789012:cluster-snapshot:aurora-cluster1-snapshot-20130805 \
  --target-db-cluster-snapshot-identifier myclustersnapshotcopy \
  --copy-tags
```
在 Windows 中：  

```
aws rds copy-db-cluster-snapshot ^
  --source-db-cluster-snapshot-identifier arn:aws:rds:us-east-1:123456789012:cluster-snapshot:aurora-cluster1-snapshot-20130805 ^
  --target-db-cluster-snapshot-identifier myclustersnapshotcopy ^
  --copy-tags
```

## RDS API
<a name="USER_CopyDBClusterSnapshot.Unencrypted.CrossRegion.API"></a>

如要複製資料庫叢集快照，請使用 Amazon RDS API [CopyDBClusterSnapshot](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_CopyDBClusterSnapshot.html) 作業。如果您要將快照複製到另一個快照 AWS 區域，請在要複製快照 AWS 區域 的 中執行 動作。

下列參數用來複製未加密的資料庫叢集快照：
+ `SourceDBClusterSnapshotIdentifier` – 要複製之資料庫叢集快照的識別符。如果您要將快照複製到另一個快照 AWS 區域，此識別符必須是來源 的 ARN 格式 AWS 區域。
+ `TargetDBClusterSnapshotIdentifier` – 資料庫叢集快照之新副本的識別符。

下列程式碼會在 美國西部 (加州北部) 區域中建立快照 `arn:aws:rds:us-east-1:123456789012:cluster-snapshot:aurora-cluster1-snapshot-20130805` 的複本，名稱為 `myclustersnapshotcopy`。建立副本時，原始快照的所有標籤會複製到快照副本。

**Example**  

```
https://rds.us-west-1.amazonaws.com/
   ?Action=CopyDBClusterSnapshot
   &CopyTags=true
   &SignatureMethod=HmacSHA256
   &SignatureVersion=4
   &SourceDBSnapshotIdentifier=arn%3Aaws%3Ards%3Aus-east-1%3A123456789012%3Acluster-snapshot%3Aaurora-cluster1-snapshot-20130805
   &TargetDBSnapshotIdentifier=myclustersnapshotcopy
   &Version=2013-09-09
   &X-Amz-Algorithm=AWS4-HMAC-SHA256
   &X-Amz-Credential=AKIADQKE4SARGYLE/20140429/us-west-1/rds/aws4_request
   &X-Amz-Date=20140429T175351Z
   &X-Amz-SignedHeaders=content-type;host;user-agent;x-amz-content-sha256;x-amz-date
   &X-Amz-Signature=9164337efa99caf850e874a1cb7ef62f3cea29d0b448b9e0e7c53b288ddffed2
```