

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

# 使用快照來遷移資料
<a name="snapshot-based-migration"></a>

就地升級更簡單、更快速且更可靠，可讓您將網域升級至更新的 ​OpenSearch 或 Elasticsearch 版本。如果您需要從 ​Elasticsearch 5.1 之前的版本中遷移或想要遷移至全新的叢集，快照會是一個好選擇。

下表說明如何使用快照將資料遷移至使用不同 OpenSearch 或 Elasticsearch​ 版本的網域。如需有關拍攝和恢復快照的資訊，請參閱[在 Amazon OpenSearch Service 中建立索引快照](managedomains-snapshots.md)。


| 原始版本 | 目標版本 | 遷移程序 | 
| --- | --- | --- | 
| OpenSearch 1.3 或 2.x | OpenSearch 2.x |  [See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/opensearch-service/latest/developerguide/snapshot-based-migration.html)  | 
| OpenSearch 1.x | OpenSearch 1.x |  [See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/opensearch-service/latest/developerguide/snapshot-based-migration.html)  | 
| Elasticsearch 6.x 或 7.x | OpenSearch 1.x |  [See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/opensearch-service/latest/developerguide/snapshot-based-migration.html)  | 
| Elasticsearch 6.x | Elasticsearch 7.x |  [See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/opensearch-service/latest/developerguide/snapshot-based-migration.html)  | 
| Elasticsearch 6.x | Elasticsearch 6.8 |  [See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/opensearch-service/latest/developerguide/snapshot-based-migration.html)  | 
| Elasticsearch 5.x | Elasticsearch 6.x |  [See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/opensearch-service/latest/developerguide/snapshot-based-migration.html)  | 
| Elasticsearch 5.x | Elasticsearch 5.6 |  [See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/opensearch-service/latest/developerguide/snapshot-based-migration.html)  | 
| Elasticsearch 2.3 | Elasticsearch 6.x | Elasticsearch 2.3 快照與 6.*x* 不相容。若要直接將您的資料從 2.3 遷移至 6.*x*，您必須在新網域手動重新建立索引。<br />或者，您可以遵照此表中的 2.3 到 5.*x* 步驟，在全新 5.*x* 網域中執行 `_reindex` 操作，將您的 2.3 索引轉換為 5.*x* 索引，接著再遵循 5.*x* 到 6.*x* 步驟。 | 
| Elasticsearch 2.3 | Elasticsearch 5.x |  [See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/opensearch-service/latest/developerguide/snapshot-based-migration.html)  | 
| Elasticsearch 1.5 | Elasticsearch 5.x | Elasticsearch 1.5 快照與 5.*x* 不相容。若要將您資料從 1.5 遷移至 5.*x*，您必須在新網域手動重新建立索引。 1.5 快照與 2.3 *相容*，但 OpenSearch Service 2.3 網域不支援 `_reindex` 操作。因為您無法為其重新編製索引，所以在 1.5 網域中產生的索引仍然無法從 2.3 快照還原到 5.*x* 網域。  | 
| Elasticsearch 1.5 | Elasticsearch 2.3 |  [See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/opensearch-service/latest/developerguide/snapshot-based-migration.html)  | 