Restoring a Backup to a New OpenSearch Cluster

Restore a backup to a different OpenSearch cluster than the source cluster.

Use this option when the cluster itself has failed and you need to rebuild the cluster. If the cluster is fine but there's an issue with the data in the cluster, see Restoring a Backup to the Source OpenSearch Cluster.

Before you restore the backup, you need to create the new cluster. Follow the steps in Creating an OpenSearch Cluster, and specify the same node configuration options as the ones for the cluster that you're restoring from backup.

    1. Open the navigation menu and click Databases. Under OpenSearch, click Backups.

    2. Under List scope, select the compartment that contains the backup.

    3. In the Backups list, locate the backup that you want to restore, click the Actions menu (Actions Menu), and then select Restore.

    4. In the Restore dialog box, select the new cluster that you want to restore to. Click Change Compartment if the new cluster is in a different compartment from the backup.
    5. Click Restore.
  • Use the restore command and required parameters to restore a backup to the source cluster:

    oci opensearch cluster restore --compartment-id <compartment_ID> --opensearch-cluster-backup-id backup_ocid --opensearch-cluster-id new_cluster_ocid

    For a complete list of flags and variable options for CLI commands, see the Command Line Reference.

  • For information about using the API and signing requests, see REST APIs and Security Credentials. For information about SDKs, see Software Development Kits and Command Line Interface.

    Run the RestoreOpensearchCluster operation to restore a backup to a new cluster.