Restoring a Backup to the Source OpenSearch Cluster

Restore an OpenSearch cluster backup to the source cluster the backup was generated from.

Restoring a backup to the source cluster reverts the data in the existing cluster to a snapshot from a previous point in time. Use this option when the cluster is fine but there's an issue with the data in the cluster, so you just want to restore the data.

If the cluster itself has failed and you need to rebuild the cluster, see Restoring a Backup to a New OpenSearch Cluster.

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

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

    3. In the Clusters list, click the name of the cluster that you want to restore to a backup.

    4. On the cluster details page, under Resources, click Backups.
    5. In the Backups list, click the Actions menu (Actions Menu) for the backup that you want to restore to, and then select Restore.
    6. In the Restore panel, 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 source_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 cluster.