https://github.com/nickstenning/elasticbackup
Tools to backup and restore ElasticSearch indices
https://github.com/nickstenning/elasticbackup
Last synced: about 1 year ago
JSON representation
Tools to backup and restore ElasticSearch indices
- Host: GitHub
- URL: https://github.com/nickstenning/elasticbackup
- Owner: nickstenning
- License: mit
- Created: 2012-07-24T16:11:17.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2016-12-11T00:44:04.000Z (over 9 years ago)
- Last Synced: 2025-05-07T10:32:39.715Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 117 KB
- Stars: 10
- Watchers: 3
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
README
elasticbackup
=============
elasticbackup is a set of two command-line tools,
elasticbackup, and
elasticrestore
that you can use to backup and restore data from ElasticSearch indices using
their scroll[1] and bulk[2] APIs.
installing
----------
elasticbackup is available on the Python Package Index, so you can just
pip install elasticbackup
usage
-----
To backup the data from an index "foo" on a remote server, "es-1.mydomain.com",
that listens on port 9200, you can run
elasticbackup es-1.mydomain.com:9200 foo
By default, this will create two files in your working directory. One contains a
JSON-serialisation of the index's mappings. The other contains a dump of the
documents in the index, serialised as JSON, one per line.
To restore these files to a local index, you might run
elasticrestore -d -m localhost:9200 myfoo
For more information and complete options allowed by elasticbackup and
elasticrestore, run
elasticbackup -h
elasticrestore -h
license
-------
elasticbackup is released under the terms of the MIT license, a copy of which
can be found in this distribution, in the LICENSE file.
[1]: http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-scroll.html
[2]: http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/docs-bulk.html