Copyright Elasticsearch 2013. Copying, publishing and/or distributing without written permission is strictly prohibited Snapshot/Restore in Elasticsearch v1.0 Elasticsearch-NL User Group Amsterdam - Oct 10, 2013 Friday, October 11, 13
Copyright Elasticsearch 2013. Copying, publishing and/or distributing without written permission is strictly prohibited About Me • Igor Motov • Developer at Elasticsearch Inc. • Github: imotov • Twitter: @imotov Friday, October 11, 13
Copyright Elasticsearch 2013. Copying, publishing and/or distributing without written permission is strictly prohibited Snapshot/Restore Friday, October 11, 13
Copyright Elasticsearch 2013. Copying, publishing and/or distributing without written permission is strictly prohibited Snapshot/Restore? Backup Friday, October 11, 13
Copyright Elasticsearch 2013. Copying, publishing and/or distributing without written permission is strictly prohibited Snapshot/Restore? Backup Rollback to previous state Friday, October 11, 13
Copyright Elasticsearch 2013. Copying, publishing and/or distributing without written permission is strictly prohibited Snapshot/Restore? Backup Rollback to previous state Index copy Friday, October 11, 13
Copyright Elasticsearch 2013. Copying, publishing and/or distributing without written permission is strictly prohibited Snapshot/Restore? Backup Cluster to cluster copy Rollback to previous state Index copy Friday, October 11, 13
Copyright Elasticsearch 2013. Copying, publishing and/or distributing without written permission is strictly prohibited Snapshot/Restore? Backup Friday, October 11, 13
Copyright Elasticsearch 2013. Copying, publishing and/or distributing without written permission is strictly prohibited Gateways Gateways S3 Shared File System HDFS Local Friday, October 11, 13
Copyright Elasticsearch 2013. Copying, publishing and/or distributing without written permission is strictly prohibited Gateways Gateways S3 Shared File System HDFS Local Deprecated Friday, October 11, 13
Copyright Elasticsearch 2013. Copying, publishing and/or distributing without written permission is strictly prohibited Start Snapshot $ curl -XPUT "localhost:9200/_snapshot/my_backup/snapshot_20131010" -d '{ "indices":"+test_*,-test_4" }' repository snapshot name list of indices (optional) Friday, October 11, 13
Copyright Elasticsearch 2013. Copying, publishing and/or distributing without written permission is strictly prohibited Restore Index v0.90 1. Close the index (shutdown the cluster) 2. Find all existing index shards 3. Replace all index shards with data from backup 4. Open the index (start the cluster) Friday, October 11, 13
Copyright Elasticsearch 2013. Copying, publishing and/or distributing without written permission is strictly prohibited Restore Index v1.0 $ curl -XPOST "localhost:9200/_snapshot/my_backup/snapshot_20131010" -d '{ "indices":"test_*" }' $ curl -XPOST "localhost:9200/test_*/_close" close all indices that start with test_ repository name snapshot name list of indices to restore Friday, October 11, 13
Copyright Elasticsearch 2013. Copying, publishing and/or distributing without written permission is strictly prohibited https://github.com/elasticsearch/elasticsearch/issues/3826 Friday, October 11, 13
Copyright Elasticsearch 2013. Copying, publishing and/or distributing without written permission is strictly prohibited Available in v1.0 Friday, October 11, 13
Copyright Elasticsearch 2013. Copying, publishing and/or distributing without written permission is strictly prohibited Questions? Friday, October 11, 13