

기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.

# Neptune 클러스터 복원
<a name="restoring-nep"></a>

## AWS Backup 콘솔을 사용하여 Amazon Neptune 복구 시점 복원
<a name="nep-restore-console"></a>

Amazon Neptune 데이터베이스를 복원하려면 여러 복원 옵션을 지정해야 합니다. 이러한 옵션에 대한 자세한 내용은 *Neptune* 사용 설명서의 [DB 클러스터 스냅샷에서 복원](https://docs.aws.amazon.com/neptune/latest/userguide/backup-restore-restore-snapshot.html)을 참조하세요.

**Neptune 데이터베이스를 복원하려면**

1. [https://console.aws.amazon.com/backup](https://console.aws.amazon.com/backup) AWS Backup 콘솔을 엽니다.

1. 탐색 창에서 **보호된 리소스**를 선택하고 복원하려는 Neptune 리소스 ID를 선택합니다.

1. **리소스 세부 정보** 페이지에 선택된 리소스 ID의 복구 시점 목록이 표시됩니다. 리소스를 복원하려면 **백업** 창에서 리소스의 복구 시점 ID 옆에 있는 라디오 버튼을 선택합니다. 창의 오른쪽 위에서 **복원**을 선택합니다.

1. **인스턴스 사양** 창에서 기본값을 수락하거나 **DB 엔진** 및 **버전**을 지정합니다.

1. **설정** 창에서 현재 리전 AWS 계정 에서가 소유한 모든 DB 클러스터 인스턴스에 대해 고유한 이름을 지정합니다. DB 클러스터 식별자는 대소문자를 구분하지 않지만 '`mydbclusterinstance`'와 같이 모두 소문자로 저장됩니다. 필수 필드입니다.

1. **데이터베이스 옵션** 창에서 기본값을 수락하거나 **데이터베이스 포트** 및 ** DB 클러스터 파라미터 그룹** 옵션을 지정합니다.

1. **암호화** 창에서 기본값을 수락하거나 **암호화 활성화** 또는 **암호화 비활성화** 설정의 옵션을 지정합니다.

1. **로그 내보내기** 창에서 Amazon CloudWatch Logs에 게시할 로그 유형을 선택합니다. **IAM 역할**이 이미 정의되어 있습니다.

1. **복원 역할** 창에서 AWS Backup 에서 이 복원 수행을 위임할 IAM 역할을 선택합니다.

1. 모든 설정을 지정한 후 **백업 복원**을 선택합니다.

   **복원 작업** 창이 나타납니다. 페이지 상단에 복원 작업에 대한 정보를 제공하는 메시지가 나타납니다.

1. 복원이 완료되면 복원된 Neptune 클러스터를 Amazon RDS 인스턴스에 연결합니다.

## AWS Backup API, CLI 또는 SDK를 사용하여 Neptune 복구 시점 복원
<a name="nep-restore-cli"></a>

먼저 클러스터를 복원합니다. `[StartRestoreJob](https://docs.aws.amazon.com/aws-backup/latest/devguide/API_StartRestoreJob.html)`를 사용합니다. Amazon DocumentDB를 복원할 때 다음 메타데이터를 지정할 수 있습니다.

```
availabilityZones
backtrackWindow
copyTagsToSnapshot // Boolean 
databaseName // string 
dbClusterIdentifier // string 
dbClusterParameterGroupName // string 
dbSubnetGroupName // string 
enableCloudwatchLogsExports // string 
enableIAMDatabaseAuthentication // Boolean 
engine // string 
engineMode // string 
engineVersion // string 
kmsKeyId // string 
port // integer 
optionGroupName // string 
scalingConfiguration
vpcSecurityGroupIds // string
```

그런 다음, `create-db-instance`를 사용하여 복원된 Neptune 클러스터를 Amazon RDS 인스턴스에 연결합니다.
+ Linux, macOS, Unix의 경우:

  ```
  aws neptune create-db-instance --db-instance-identifier sample-instance \ 
                    --db-instance-class db.r5.large --engine neptune --engine-version 1.0.5.0 --db-cluster-identifier sample-cluster --region us-east-1
  ```
+ Windows의 경우:

  ```
  aws neptune create-db-instance --db-instance-identifier sample-instance ^
                    --db-instance-class db.r5.large --engine neptune --engine-version 1.0.5.0 --db-cluster-identifier sample-cluster --region us-east-1
  ```

자세한 내용은 **Neptune 관리 API 참조의 [https://docs.aws.amazon.com/neptune/latest/userguide/api-snapshots.html#RestoreDBClusterFromSnapshot](https://docs.aws.amazon.com/neptune/latest/userguide/api-snapshots.html#RestoreDBClusterFromSnapshot) 섹션 및 **Neptune CLI 설명서의 [https://awscli.amazonaws.com/v2/documentation/api/latest/reference/neptune/restore-db-cluster-from-snapshot.html](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/neptune/restore-db-cluster-from-snapshot.html) 섹션을 참조하세요.