

# AWS CLI 또는 Amazon RDS API를 사용하여 암호화되지 않은 DB 클러스터 스냅샷 복사
<a name="USER_CopyDBClusterSnapshot.Unencrypted.CrossRegion"></a>

다음 섹션의 절차에 따라 AWS Management Console, AWS CLI 또는 Amazon RDS API를 사용하여 암호화되지 않은 DB 클러스터 스냅샷을 복사합니다.

진행 중인 복사 작업을 취소하려면 대상 DB 클러스터 스냅샷이 **copying** 상태에 있는 동안 `--target-db-cluster-snapshot-identifier` 또는 `TargetDBClusterSnapshotIdentifier`로 식별된 해당 DB 클러스터 스냅샷을 삭제합니다.

## 콘솔
<a name="USER_CopyDBClusterSnapshot.Unencrypted.CrossRegion.Console"></a>

AWS Management Console을 사용하여 DB 클러스터 스냅샷을 복사하려면 [AWS Management Console을 사용한 DB 클러스터 스냅샷 복사](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) 명령을 사용하여 DB 클러스터 스냅샷을 복사할 수 있습니다. 스냅샷을 다른 AWS 리전에 복사하려는 경우 스냅샷을 복사할 AWS 리전에서 명령을 실행합니다.

다음 옵션을 사용하여 암호화되지 않은 DB 클러스터 스냅샷을 복사할 수 있습니다.
+ `--source-db-cluster-snapshot-identifier` – 복사할 DB 클러스터 스냅샷의 식별자입니다. 스냅샷을 다른 AWS 리전에 복사하려는 경우 이 식별자는 소스 AWS 리전의 ARN 형식이어야 합니다.
+ `--target-db-cluster-snapshot-identifier` – DB 클러스터 스냅샷의 새 사본의 식별자입니다.

다음 코드는 명령이 실행되는 AWS 리전에 `myclustersnapshotcopy`라는 DB 클러스터 스냅샷 `arn:aws:rds:us-east-1:123456789012:cluster-snapshot:aurora-cluster1-snapshot-20130805`의 사본을 만듭니다. 복사가 완료되면 원래 스냅샷의 모든 태그가 스냅샷 사본에 복사됩니다.

**Example**  
대상 LinuxmacOS, 또는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>

DB 클러스터 스냅샷을 복사하려면 Amazon RDS API [CopyDBClusterSnapshot](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_CopyDBClusterSnapshot.html) 작업을 사용합니다. 스냅샷을 다른 AWS 리전에 복사하려는 경우 스냅샷을 복사할 AWS 리전에서 작업을 수행합니다.

다음 파라미터를 사용하여 암호화되지 않은 DB 클러스터 스냅샷을 복사할 수 있습니다.
+ `SourceDBClusterSnapshotIdentifier` – 복사할 DB 클러스터 스냅샷의 식별자입니다. 스냅샷을 다른 AWS 리전에 복사하려는 경우 이 식별자는 소스 AWS 리전의 ARN 형식이어야 합니다.
+ `TargetDBClusterSnapshotIdentifier` – DB 클러스터 스냅샷의 새 사본의 식별자입니다.

다음 코드는 미국 서부(캘리포니아 북부 지역) 리전에 `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
```