Elasticsearch Snapshot (backup) on GCS
1 min readMar 18, 2019
1 — Add your json credential on elasticsearch folder “/etc/elasticsearch”, eg “/etc/elasticsearch/stag.json”
2 — Run the following command on the terminal
curl -XPUT ‘localhost:9200/_snapshot/GceRepository?pretty’ -d ‘
{
“type”: “gcs”,
“settings”: {
“bucket”:”myproject-staging.appspot.com”,
“service_account”: “stag.json”,
“base_path”: “backup”
}
}’
Snapshot(ting) & Backup: With all done.Now, we are ready to backup the snapshot onto GCE.
curl -XPUT 'localhost:9200/_snapshot/GceRepository/snapshot_1?wait_for_completion=true'
🍺 Liked? Give me a beer
Follow: Twitter, Instagram, LinkedIN, Facebook