PHPackages                             inzh/elasticsearch-high-level-dump - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Search &amp; Filtering](/categories/search)
4. /
5. inzh/elasticsearch-high-level-dump

ActiveLibrary[Search &amp; Filtering](/categories/search)

inzh/elasticsearch-high-level-dump
==================================

Tool for create or restore high level dump for cluster elasticsearch with search/scroll method

v1.0.0(4y ago)37CC-BY-4.0PHPPHP &gt;=5.6

Since Mar 7Pushed 3y agoCompare

[ Source](https://github.com/inzh-studio/elasticsearch-high-level-dump-php)[ Packagist](https://packagist.org/packages/inzh/elasticsearch-high-level-dump)[ RSS](/packages/inzh-elasticsearch-high-level-dump/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

Elasticsearch high level dump
=============================

[](#elasticsearch-high-level-dump)

A tool for creating and restoring dump on cluster Elasticsearch with search/scroll method.

[![Minimum PHP Version](https://camo.githubusercontent.com/c83abf2e3660a2c2b5676e3742acc56aca0e6b65d6184eabd9fa290cb5ea76c7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230352e362d3838393242462e7376673f6c6f676f3d706870)](https://php.net/)[![Minimum Elasticsearch Version](https://camo.githubusercontent.com/1249cd0ee7d3d1a3d90b37dc5ff20d6cc37f3606c8d494be7dd3ab2ffb4f9476/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f656c61737469637365617263682d253345253344253230312e342d79656c6c6f77677265656e3f6c6f676f3d656c6173746963736561726368)](https://www.elastic.co/)

Installation
------------

[](#installation)

You can install this tool in your PHP project using composer:

```
composer require inzh/elasticsearch-high-level-dump

```

Usage
-----

[](#usage)

> ⚠️ **All indexs is read with search/scrool method, and written with bulk method**, use with caution for preserve data integrity.

### Bash:

[](#bash)

You can use this tool in cli context.

For dump process :

```
./vendor/bin/edump
```

For restore process :

```
./vendor/bin/erestore
```

All options :

1. The `--gzip` option Use GZip compression for restore or dump.
2. The `-b`, `--buffer` option Set buffer for read on write, big buffer need more memory: 1000
3. The `-o`, `--output` option Set output path file or stream, default on standart output: /var/dir/file
4. The `-i`, `--input` option Set input path file or stream, default on standart input: /var/dir/file
5. The `-es-host` option Set Elasticsearch service hostname or ip: localhost
6. The `-es-port` option Set Elasticsearch service port: 9200

Exemple :

```
./vendor/bin/edump --gzip -b 1000 -es-host localhost -es-port 9200 > output.json.gz
cat output.json.gz | ./vendor/bin/erestore --gzip -b 1000 -es-host localhost -es-port 9200

./vendor/bin/edump --gzip -b 1000 -es-host localhost -es-port 9200 -o output.json.gz
./vendor/bin/erestore --gzip -b 1000 -es-host localhost -es-port 9200 -i output.json.gz
```

### Development:

[](#development)

You can use directly process class in your code.

For dump process :

```
use inzh\elasticsearch\dump\HighLevelDump;

$client = $yourInstanceOfClient; // Your elasticsearch client
$options = new \stdClass; // .... See all options in next section

$process = new HighLevelDump($client, $options);
$process->dump();
```

For restore process :

```
use inzh\elasticsearch\dump\HighLevelRestore;

$client = $yourInstanceOfClient; // Your elasticsearch client
$options = new \stdClass; // .... See all options in next section

$process = new HighLevelRestore($client, $options);
$process->restore();
```

All options :

```
// All options parameters
$options = new \stdClass;
$options->buffer = 1000;
$options->gzip = false;
$options->output = "php://stdout"; // Stream or filePath
$options->input = "php://stdin"; // Stream or filePath
$options->host = "localhost";
$options->port = 9200;
```

[© 2011-2022 \[InZH\] Studio.](https://www.inzh.fr/)

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

1527d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/420e15301e5d7881588a9aa9676e03687a4b5f8a91544c0b6b7079ee39f1a158?d=identicon)[jr-nazareth](/maintainers/jr-nazareth)

---

Top Contributors

[![jr-nazareth](https://avatars.githubusercontent.com/u/102902107?v=4)](https://github.com/jr-nazareth "jr-nazareth (3 commits)")

---

Tags

elasticsearchbin

### Embed Badge

![Health badge](/badges/inzh-elasticsearch-high-level-dump/health.svg)

```
[![Health](https://phpackages.com/badges/inzh-elasticsearch-high-level-dump/health.svg)](https://phpackages.com/packages/inzh-elasticsearch-high-level-dump)
```

###  Alternatives

[mailerlite/laravel-elasticsearch

An easy way to use the official PHP ElasticSearch client in your Laravel applications.

934529.3k2](/packages/mailerlite-laravel-elasticsearch)[matchish/laravel-scout-elasticsearch

Search among multiple models with ElasticSearch and Laravel Scout

7431.6M2](/packages/matchish-laravel-scout-elasticsearch)[jeroen-g/explorer

Next-gen Elasticsearch driver for Laravel Scout.

397612.3k](/packages/jeroen-g-explorer)[jsq/amazon-es-php

Support for using IAM authentication with the official Elasticsearch PHP client

9310.6M13](/packages/jsq-amazon-es-php)[babenkoivan/elastic-client

The official PHP Elasticsearch client integrated with Laravel

544.0M6](/packages/babenkoivan-elastic-client)[madewithlove/elasticsearcher

Wrapper on top of the ElasticSearch PHP SDK which allows easier index/document/query management.

264133.2k2](/packages/madewithlove-elasticsearcher)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
