Thursday, June 24, 2021

create Elastic Search Database backup


1.Make a zip from elasticsearch folder by executing, `tar -czvf backup.tar.gz elasticsearch`

 =========


Existing database table values display as follows.



2. Stop elastic search db

3. rename it's db data folder to different name


4. extract previously taken db backup using below command

tar -xvf backup.tar.gz
 

 5. Now you can see the extract elasticsearch data folder as follows

 6.start elastic search db using below command
sudo service elasticsearch start
7. recheck the data using the postman

 



No comments: