Best ways to add indices to an existing ES instance

(Serge) #1

whats the best way to move over an index from one server to another, which already has its own index that is unrelated to the first server ?

basically the scenario is,
I have an index on server-1, which is used by website-1, and due to server cost, i want to move website-2 that will use its own ES index from server-2 on server-1.


(Joshua P) #2

Would this be what you're looking for? Snapshot & Restore to a different cluster?

(Serge) #3

This actually worked! thanks!

curl -XPUT 'http://localhost:9200/_snapshot/s1' -d '{"type": "fs","settings": {"location": "/var/es_backups/s1","compress": true}}'
curl -XPOST "http://localhost:9200/_snapshot/s1/2015_0513/_restore"

"/var/es_backups/s1" from old server.

(system) #4