Elasticsearch Snapshot (backup) on GCS

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

--

--

Dev aposentado, Product Manager, do interior RJ com leve sotaque de mineiro.

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store