top of page

ElasticSearch Data Backup and Restore

  • taolius
  • Jan 20, 2016
  • 1 min read

PUT http://source_server:9200/_snapshot/es21 { "type": "fs", "settings": { "compress": "true", "location": "/tmp/bak_es21" } }

PUT http://source_server:9200/_snapshot/es21/snapshot_01072016?wait_for_completion=true { "ignore_unavailable": "true" }

At the Restore server:

PUT /_snapshot/es21 { "type": "fs", "settings": { "compress": "true", "location": "/tmp/bak_es21" } }

DELETE /_all

POST /_snapshot/es21/snapshot_01072016/_restore?wait_for_completion=true { "ignore_unavailable": "true" }

GET /_snapshot/es21/snapshot_01072016/ (to check the restore status)


 
 
 

Opmerkingen


© 2023 by BI World. Proudly created with Wix.com

  • Facebook Basic Black
  • Twitter Basic Black
  • YouTube Basic Black
bottom of page