Skip to content

Instantly share code, notes, and snippets.

@daffodilistic
Created April 13, 2021 09:49
Show Gist options
  • Save daffodilistic/d61449c934f08420a3881ae578720f60 to your computer and use it in GitHub Desktop.
Save daffodilistic/d61449c934f08420a3881ae578720f60 to your computer and use it in GitHub Desktop.
Dump and Restore ElasticSearch documents and indices
#!/bin/bash
elasticdump --input=$1 --output=$2 \
--type=analyzer --concurrencyInterval=500
curl -X POST "$2/_open?pretty"
elasticdump --input=$1 --output=$2 \
--type=mapping --concurrencyInterval=500
elasticdump --input=$1 --output=$2 \
--type=data --concurrencyInterval=500
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment