{"id":15204033,"url":"https://github.com/wubin1989/esdump","last_synced_at":"2025-10-29T04:31:47.099Z","repository":{"id":41534345,"uuid":"478797084","full_name":"wubin1989/esdump","owner":"wubin1989","description":"esdump is a migration CLI written in Go for migrating index mapping and data from one elasticsearch to another.","archived":false,"fork":false,"pushed_at":"2022-06-14T10:00:30.000Z","size":78,"stargazers_count":11,"open_issues_count":2,"forks_count":5,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-01T22:02:19.732Z","etag":null,"topics":["cli","cobra","elasticsearch","golang","migration-tool"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wubin1989.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-04-07T02:22:38.000Z","updated_at":"2024-05-13T23:54:44.000Z","dependencies_parsed_at":"2022-09-13T06:50:24.363Z","dependency_job_id":null,"html_url":"https://github.com/wubin1989/esdump","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wubin1989%2Fesdump","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wubin1989%2Fesdump/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wubin1989%2Fesdump/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wubin1989%2Fesdump/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wubin1989","download_url":"https://codeload.github.com/wubin1989/esdump/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238768422,"owners_count":19527197,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","cobra","elasticsearch","golang","migration-tool"],"created_at":"2024-09-28T05:05:55.249Z","updated_at":"2025-10-29T04:31:41.808Z","avatar_url":"https://github.com/wubin1989.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# esdump\n\u003cp\u003e\n  \u003ca href=\"https://godoc.org/github.com/wubin1989/esdump\"\u003e\u003cimg src=\"https://godoc.org/github.com/wubin1989/esdump?status.png\" alt=\"GoDoc\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/wubin1989/esdump/actions/workflows/go.yml\"\u003e\u003cimg src=\"https://github.com/wubin1989/esdump/actions/workflows/go.yml/badge.svg?branch=main\" alt=\"Go\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://codecov.io/gh/wubin1989/esdump/branch/main\"\u003e\u003cimg src=\"https://codecov.io/gh/wubin1989/esdump/branch/main/graph/badge.svg?token=QRLPRAX885\" alt=\"codecov\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://goreportcard.com/report/github.com/wubin1989/esdump\"\u003e\u003cimg src=\"https://goreportcard.com/badge/github.com/wubin1989/esdump\" alt=\"Go Report Card\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/wubin1989/esdump\"\u003e\u003cimg src=\"https://img.shields.io/github/v/release/wubin1989/esdump?style=flat-square\" alt=\"Release\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://opensource.org/licenses/MIT\"\u003e\u003cimg src=\"https://img.shields.io/badge/License-MIT-yellow.svg\" alt=\"License: MIT\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003cbr/\u003e\n\n[![asciicast](https://asciinema.org/a/qudEF0BjfdFMHrvWOgEWblTGV.svg)](https://asciinema.org/a/qudEF0BjfdFMHrvWOgEWblTGV)\n\n## Introduction\n\n`esdump` is a migration CLI written in Go for migrating index mapping and data from one elasticsearch to another.\n\n## Compatibility\n\n|Elasticsearch version | Esdump version | Remarks              |\n|----------------------|-----------------|----------------------|\n|7.x                   | 2.x             | Actively maintained. |\n|6.x                   | 1.x             | Actively maintained. |\n|5.x                   | 1.x             | Actively maintained. |\n\n## Install\n\n- If go version \u003c 1.17,\n```shell\ngo get -v github.com/wubin1989/esdump/v2@v2.0.0\n```\n\n- If go version \u003e= 1.17,\n```shell\ngo install -v github.com/wubin1989/esdump/v2@v2.0.0\n```\n\n## Usage\n\n```shell\n➜  ~ esdump -h\nmigrate index from one elasticsearch to another\n\nUsage:\n  esdump [flags]\n\nFlags:\n  -d, --date string       date field of docs\n      --desc              ascending or descending order by the date type field specified by date flag\n  -e, --end string        end date, use time.Local as time zone, you may need to set TZ environment variable ahead\n      --excludes string   excludes fields, multiple fields are separated by comma\n  -h, --help              help for esdump\n      --includes string   includes fields, multiple fields are separated by comma\n  -i, --input string      source elasticsearch connection url\n  -l, --limit int         limit for one scroll, it takes effect on the dumping speed (default 1000)\n  -o, --output string     target elasticsearch connection url\n  -s, --start string      start date, use time.Local as time zone, you may need to set TZ environment variable ahead\n      --step duration     step duration (default 24h0m0s)\n  -t, --type string       migration type, such as \"mapping\", \"data\", empty means both\n  -v, --version           version for esdump\n  -z, --zone string       time zone of the date type field specified by date flag (default \"UTC\")\n```\n\n## Example \n\n```shell\nexport TZ=Asia/Shanghai \u0026\u0026 esdump --input=http://localhost:9200/test --output=http://localhost:9200/test_dump --date=pubAt --start=2019-01-01 --zone=UTC --step=72h --excludes=html\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwubin1989%2Fesdump","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwubin1989%2Fesdump","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwubin1989%2Fesdump/lists"}