Export and import elasticsearch indices

If you want to export and import elastic search indices e.g. for backup purposes or the use case that you create the index on another machine there is the elasticsearch Knapsack plugin.

After installing (copying to plugins directory and restarting es) you are able to export or import an index by HTTP POST requests:

Will create an tar.gz ({theIndex}_import.tar.gz) within your es directory with the mapping and all data.

This could be imported by

Which will result in an bulk import to that index.

It also possible to export / import only certain types:

If you want to import to an index or type with a different name just rename the tar.gz (e.g. (thenewindex_import.tar.gz)) and it will be imported to the new index.


GD Star Rating

Kommentar verfassen

Diese Website verwendet Akismet, um Spam zu reduzieren. Erfahre mehr darüber, wie deine Kommentardaten verarbeitet werden.