简体   繁体   中英

How do we take a backup of Elasticsearch indexes and restore using Python?

How can we take backup and restore? I have checked out few libraries and I'm not able to take backup properly and restore.

The easiest way is to use Elasticsearch Curator , which is a python cli/lib to handle many maintenance operations in elasticsearch, such as snapshot and restore: https://github.com/elastic/curator

See usage options here: https://www.elastic.co/guide/en/elasticsearch/client/curator/current/singleton-cli.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM