Backup/Restore/Migration tool for Elasticsearch
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Backup/Restore/Migration tool for Elasticsearch

This tool will help to create compressed elasticsearch backups and restores.

This tool is based on elasticdump. Credits to the builders of elasticdump.

How to install

apt-get install npm
npm install elasticdump -g
ln -s /usr/bin/nodejs /usr/bin/node
git clone
cd esbackup
cp /usr/local/bin/esbackup

How to use

usage: esbackup [-h] [--backup] [--restore] [--migrate] [-u SOURCE] [-d PATH]
                [-i IMPORT] [-t TARGET]

Elasticsearch Backup/Restore script.

optional arguments:
  -h, --help  show this help message and exit
  --backup    ...
  --restore   ...
  --migrate   ...
  -u SOURCE   Source Elasticsearch URL
  -d PATH     Backup Data Directory
  -i IMPORT   Import Data Directory
  -t TARGET   Target Elasticsearch URL


# Backup elasticsearch data
esbackup --backup -u -d /home/backupuser/esbackup

# Restore elasticsearch data from folder
esbackup --restore -t -d /home/backupuser/esbackup/2017-10-21_11-07

# Migrate from elaticsearch cluster to another cluster 
esbackup --migrate -u -t