curl -XPUT 'http://localhost:9200/_snapshot/my_backup/' -d '{
"type": "fs",
"settings": {
"location": "/Users/sacmac/esbackups/my_backup",
"compress": true
}
}'
http PUT "localhost:9200/_snapshot/my_backup/snapshot_2?wait_for_completion=true"
http "localhost:9200/_snapshot/my_backup/snapshot_2"
curl -XPOST "localhost:9200/_snapshot/my_backup/snapshot_2/_restore"
curl -XPOST "localhost:9200/_snapshot/my_backup/snapshot_2/_restore" -d '{
"indices": "index_1,index_2",
"ignore_unavailable": "true",
"include_global_state": false,
"rename_pattern": "index_(.+)",
"rename_replacement": "restored_index_$1"
}'