As with any data storage technology, backing up and restoring data is critical to ensuring data availability. Elasticsearch is highly fault tolerant and redundant but accidents can still happen. In this hands-on lab, you will get to use the snapshot and restore APIs to back up and restore Elasticsearch data.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Create the accounts Snapshot Repository
From the Kibana console, create a new filesystem-type snapshot repository called
accounts
for the filesystem location/mnt/backups/accounts
.- Create the accounts_test_backup Snapshot of the accounts Index
From the Kibana console, create the
accounts_test_backup
snapshot of theaccounts
index including the global state.- Restore the accounts Index from the accounts_test_backup Snapshot
From the Kibana console, restore the
accounts
index from theaccounts_test_backup
snapshot as the indexaccounts_test_restore
.- Mount the accounts Index from the accounts_test_backup Snapshot
From the Kibana console, mount the
accounts
index from theaccounts_test_backup
snapshot as the indexaccounts_text_backup
so that it becomes a searchable snapshot.