Would you like to learn how to create an ElasticSearch backup? In this tutorial, we are going to show you how to create the backup of an ElasticSearch index on a computer running Ubuntu Linux.

Learn how to perform the ElasticSearch backup and restore of an index in 5 minutes or less.

• Ubuntu 18
• Ubuntu 19
• ElasticSearch 7.6.2

In our example, The ElastiSearch server IP address is 192.168.100.7.

Important! The Elasticsearch uses the word Index instead of the word Table.

ElasticSearch Related Tutorial:

On this page, we offer quick access to a list of tutorials related to ElasticSearch installation.

Tutorial ElasticSearch - Backup

Install the required packages.

Copy to Clipboard

Use the NPM command to install Elasticdump.

Copy to Clipboard

Test your communication with the ElasticSearch server.

Copy to Clipboard

Here is the command output:

Copy to Clipboard

Create an ElasticSearch backup.

Copy to Clipboard

Here is the command output:

Copy to Clipboard

In our example, we created a backup of the Elasticsearch index named ACCOUNTS.

Important! We previously created an ElasticSearch index named ACCOUNTS to use as an example.

Verify the content of the ElasticSearch backup file.

Copy to Clipboard

Here is the command output:

Copy to Clipboard

Congratulations! You created the backup of an ElasticSearch index.

Tutorial ElasticSearch - Restore

Install the required packages.

Copy to Clipboard

Use the NPM command to install Elasticdump.

Copy to Clipboard

Test your communication with the ElasticSearch server.

Copy to Clipboard

Here is the command output:

Copy to Clipboard

Restore the ElasticSearch backup from the JSON file.

Copy to Clipboard

Here is the command output:

Copy to Clipboard

In our example, we restored the backup of an Elasticsearch index named ACCOUNTS.

Verify the Elasticsearch data restored.

Copy to Clipboard

Here is the command output:

Copy to Clipboard

Congratulations! You restored the backup of an ElasticSearch index.