

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

# 還原測試推斷的中繼資料
<a name="restore-testing-inferred-metadata"></a>

還原復原點需要還原中繼資料。若要執行還原測試， AWS Backup 會自動推斷可能導致還原成功的中繼資料。命令`get-restore-testing-inferred-metadata`可用來預覽 AWS Backup 將推斷的內容。命令會`get-restore-job-metadata`傳回由 推斷的中繼資料集 AWS Backup。請注意，對於某些資源類型 (Amazon FSx)， AWS Backup 無法推斷完整的中繼資料集。

*推斷的還原中繼資料*是在還原測試程序期間決定的。您可以將參數 `RestoreMetadataOverrides` 包含在 `RestoreTestingSelection` 的主體中，來覆寫某些還原中繼資料索引鍵。某些中繼資料覆寫無法在 AWS Backup 主控台中使用。

每個支援的資源都有推斷還原中繼資料索引鍵和值，以及可覆寫的還原中繼資料索引鍵。只有標記{{成功還原所需}}的 `RestoreMetadataOverrides` 索引鍵值配對或巢狀索引鍵值對必須包含在其中；其他都是選用的值。請留意，索引鍵值不區分大小寫。

**重要**  
AWS Backup 可以推斷資源應還原至預設設定，例如 Amazon EC2 執行個體或還原至預設 VPC 的 Amazon RDS 叢集。不過，如果預設值不存在，例如已刪除預設 VPC 或子網路，且未輸入中繼資料覆寫，則還原將不會成功。


| Resource Type (資源類型) | 推斷還原中繼資料索引鍵和值 | 可覆寫中繼資料 | 
| --- | --- | --- | 
| **DynamoDB** | `deletionProtection`，其中值會設定為 `false`<br />`encryptionType` 已設定為 `Default`<br />`targetTableName`，其中值會設定為開頭為 `awsbackup-restore-test-` 的隨機值 | `encryptionType`<br />`kmsMasterKeyArn` | 
| **Amazon EBS** | `availabilityZone`，其值會設定為隨機可用區域<br />`encrypted`，其值會設定為 `true` | `availabilityZone`<br />`iops`<br />`kmsKeyId`<br />`throughput`<br />`volumesize`<br />`volumetype` | 
| **Amazon EC2** | `disableApiTermination` 值會設定為 `false`<br />`instanceType` 值會設定為要還原之復原點的 instanceType<br />`requiredImdsV2` 值會設定為 `true` | `iamInstanceProfileName` (null 或 `UseBackedUpValue`)<br />`instanceType`<br />`requireImdsV2`<br />`securityGroupIds`<br />`subnetId` | 
| **Amazon EFS** | `encrypted` 值會設定為 `true`<br />`file-system-id` 值會設定為要還原之復原點的檔案系統 ID<br />`kmsKeyId value` 已設定為 `alias/aws/elasticfilesystem`<br />`newFileSystem` 值會設定為 `true`<br />`performanceMode` 值會設定為 `generalPurpose` | `kmsKeyId`<br />`performanceMode` | 
| **Amazon FSx for Lustre** | `lustreConfiguration` 具有巢狀索引鍵。一個巢狀索引鍵是 `automaticBackupRetentionDays`，其值會設為 `0` | `kmsKeyId`<br />`lustreConfiguration` 具有巢狀索引鍵 `logConfiguration`<br />`securityGroupIds`<br />`subnetIds`，{{成功還原所需}} | 
| **Amazon FSx for NetApp ONTAP** | `name` 會設定為開頭為 `awsbackup_restore_test_` 的隨機值<br />`ontapConfiguration` 具有巢狀索引鍵，包括：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/aws-backup/latest/devguide/restore-testing-inferred-metadata.html) | `ontapConfiguration` 具有特定的可覆寫巢狀索引鍵，包括：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/aws-backup/latest/devguide/restore-testing-inferred-metadata.html) | 
| **Amazon FSx for OpenZFS** | `openZfzConfiguration`，其中有巢狀索引鍵，包括：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/aws-backup/latest/devguide/restore-testing-inferred-metadata.html) | `kmsKeyId`<br />`openZfsConfiguration` 具有特定的可覆寫巢狀索引鍵，包括：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/aws-backup/latest/devguide/restore-testing-inferred-metadata.html)<br />`securityGroupIds`<br />`subnetIds` | 
| **Amazon FSx for Windows File Server** | `windowsConfiguration`，其中有巢狀索引鍵，包括：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/aws-backup/latest/devguide/restore-testing-inferred-metadata.html) | `kmsKeyId`<br />`securityGroupIds`<br />`subnetIds` {{成功還原所需}}<br />`windowsConfiguration`，包含特定的可覆寫巢狀索引鍵[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/aws-backup/latest/devguide/restore-testing-inferred-metadata.html) | 
| **Amazon RDS、Aurora、Amazon DocumentDB、Amazon Neptune 叢集** | `availabilityZones`，將值設定為最多三個隨機可用區域的清單<br />`dbClusterIdentifier`，包含開頭為 `awsbackup-restore-test` 的隨機值<br />`engine`，將值設定為要還原之復原點的引擎 | `availabilityZones`<br />`databaseName`<br />`dbClusterParameterGroupName`<br />`dbSubnetGroupName`<br />`enableCloudwatchLogsExports`<br />`enableIamDatabaseAuthentication`<br />`engine`<br />`engineMode`<br />`engineVersion`<br />`kmskeyId`<br />`port`<br />`optionGroupName`<br />`scalingConfiguration`<br />`vpcSecurityGroupIds` | 
| **Amazon RDS 執行個體** | `dbInstanceIdentifier`，包含開頭為 `awsbackup-restore-test-` 的隨機值<br />`deletionProtection`，將值設定為 `false`<br />`multiAz`，將值設定為 `false`<br />`publiclyAccessible`，將值設定為 false | `allocatedStorage`<br />`availabilityZones`<br />`dbInstanceClass`<br />`dbName`<br />`dbParameterGroupName`<br />`dbSubnetGroupName`<br />`domain`<br />`domainIamRoleName`<br />`enableCloudwatchLogsExports`<br />`enableIamDatabaseAuthentication`<br />`iops`<br />`licensemodel`<br />`multiAz`<br />`optionGroupName`<br />`port`<br />`processorFeatures`<br />`publiclyAccessible`<br />`storageType`<br />`vpcSecurityGroupIds` | 
| **Amazon Simple Storage Service (Amazon S3)** | `destinationBucketName`，包含開頭為 `awsbackup-restore-test-` 的隨機值<br />`encrypted `，將值設定為 `true`<br />`encryptionType`，將值設定為 `SSE-S3`<br />`newBucket`，將值設定為 `true` | `encryptionType`<br />`kmsKey` | 