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.