Loading

Manage snapshot repositories in Elastic Cloud Enterprise

ECE

Snapshots enable you to back up and restore Elasticsearch indices, protecting data from accidental deletion and supporting migration between clusters. In Elastic Cloud Enterprise (ECE), snapshot repositories are managed at the platform level and can be assigned to individual deployments.

When a repository is assigned to a deployment, a snapshot is taken every 30 minutes by default. The snapshot interval can be adjusted per deployment.

Elastic Cloud Enterprise installations support the following Elasticsearch snapshot repository types:

  • AWS S3
  • Azure Blob Storage
  • Google Cloud Storage
  • Minio S3
Note

No repository types other than those listed are supported in the Elastic Cloud Enterprise platform, even if they are supported by Elasticsearch.

For more details about how snapshots are used with Elasticsearch, check Snapshot and Restore. You can also review the official documentation for these storage repository options:

Tip

If you are installing ECE without internet access (commonly called an offline or air-gapped installation), you will need to use an on-premise storage service. We suggest that you use Minio. For our installation notes, check Snapshotting to Minio On-Premise Storage.

The following guides provide instructions on adding a snapshot repository in ECE for all supported types:

To edit a snapshot repository configuration from your Elastic Cloud Enterprise installation:

  1. Log into the Cloud UI.
  2. From the Platform menu, select Repositories.
  3. Select Edit to modify a snapshot repository configuration.
  4. Select Save.

Deleting a snapshot repository configuration does not remove the snapshot repository itself from S3. Only the configuration that enables Elastic Cloud Enterprise to access the repository is removed. Existing snapshots are also retained and need to be deleted separately if you no longer need them.

To delete a snapshot repository configuration from your Elastic Cloud Enterprise installation:

  1. Log into the Cloud UI.

  2. From the Platform menu, select Repositories.

  3. Find the repository name that you want to remove.

  4. Run the following command against the repository name:

    curl -s -XDELETE -u USER:PASSWORD https://COORDINATOR_HOST:12443/api/v1/platform/configuration/snapshots/repositories/REPOSITORY_NAME
    
    Note

    The user must have sufficient privileges, such as the admin user.

You might need to update existing Elasticsearch clusters to use a different snapshot repository for one of the following reasons:

  • If you do not want all snapshots for a specific Elasticsearch cluster to go into the same bucket as your other clusters, you can add a new snapshot repository configuration with separate permissions and then change your Elasticsearch cluster to use the new repository.
  • If you created an Elasticsearch cluster with no snapshot repository configured, you can add a repository later on. Elastic Cloud Enterprise will start taking snapshots of the cluster automatically.

To change the snapshot repository for an existing Elasticsearch cluster:

  1. Log into the Cloud UI.

  2. Optional: If you need to use a repository that is not yet listed, add a snapshot repository configuration first.

  3. From the Deployments page, select your deployment.

    Narrow the list by name, ID, or choose from several other filters. To further define the list, use a combination of filters.

  4. From the Elasticsearch menu, select Snapshots.

  5. Under Snapshot repository, choose a different repository and select Save repository.

Future snapshots will be sent to the new repository.