DBAtlas · Database operations atlas

Restore from a snapshot

ElasticsearchSnapshot

Command

POST /_snapshot/backup_repo/snap1/_restore
{
  "indices": "customer",
  "rename_pattern": "customer",
  "rename_replacement": "customer_restored"
}

What it does

Restores indices from a snapshot into the cluster (optionally renaming them).

When to use it

For recovery after data loss or when moving a backup to a test environment.

Caution

To restore under the same name, the target index must be closed or deleted; you cannot restore over an open index.

Open in DBAtlas →

Related