File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 1
1
# esdump-rs
2
2
3
+ Dump elasticsearch indexes to blob storage, really-really fast :rocket :
4
+
5
+ ## Installation
6
+
7
+ ** Releases:** Grab a pre-built executable [ from the releases page] ( https://github.com/GitGuardian/esdump-rs/releases )
8
+
9
+ ** Docker:** ` docker run ghcr.io/gitguardian/esdump-rs:latest `
10
+
11
+ ## Usage
12
+
13
+ ``` shell
14
+ cargo run --profile release http://localhost:9200 --index=test-index --batches-per-file=5 --batch-size=5000 s3://es-dump/test/ --env-file=test.env --concurrency=10
15
+ ```
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ pub struct ClusterInfo {
39
39
40
40
#[ derive( Deserialize , Debug ) ]
41
41
pub struct ClusterVersion {
42
- pub distribution : ElasticDistribution ,
42
+ pub distribution : Option < ElasticDistribution > ,
43
43
}
44
44
45
45
#[ derive( Deserialize , Debug ) ]
@@ -121,7 +121,7 @@ impl ElasticsearchClient {
121
121
"Distribution detected: {:?}" ,
122
122
cluster_info. version. distribution
123
123
) ;
124
- cluster_info. version . distribution
124
+ cluster_info. version . distribution . unwrap_or ( ElasticDistribution :: Elasticsearch )
125
125
}
126
126
} ;
127
127
You can’t perform that action at this time.
0 commit comments