Elasticsearch Snapshot (backup) on GCS

Deyvid Nascimento
Mar 18, 2019 · 1 min read

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”: {
“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


creative software engineer

Deyvid Nascimento

Written by

Software Engineer



creative software engineer

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade