A simple tool to backup *Search (e.g: ElasticSearch / OpenSearch) to multiple destinations | Read-only mirror of https://github.com/swisscom/searchdump — Swisscom. Issues & pull requests at the source.
  • Go 96.9%
  • Makefile 1.8%
  • Dockerfile 1.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2022-03-03 13:38:25 +01:00
cmd/searchdump style: gofmt 2022-03-03 13:34:03 +01:00
pkg style: gofmt 2022-03-03 13:34:03 +01:00
.dockerignore feat: exclude some YAML files 2022-01-04 16:40:29 +01:00
.gitignore feat: exclude some YAML files 2022-01-04 16:40:29 +01:00
Dockerfile feat: add tmux, htop and curl to Dockerfile for interactive backups 2022-01-05 16:11:25 +01:00
go.mod chore: go mod tidy 2022-03-03 13:38:25 +01:00
go.sum initial commit 2022-01-04 15:21:36 +01:00
LICENSE initial commit 2022-01-04 15:21:36 +01:00
Makefile build: add instructions 2022-03-03 13:36:50 +01:00
manifest.yml feat: add Makefile and Cloud Foundry manifest 2022-01-04 15:52:00 +01:00
README.md docs: add title 2022-03-03 13:37:57 +01:00

searchdump

A simple tool to backup *Search (e.g: ElasticSearch / OpenSearch) to multiple destinations

Building

Requirements

  • Golang (v1.17+)
  • Make

Instructions

make build
./build/searchdump -h

Running

$ searchdump -h
Usage: searchdump --from FROM --from-type FROM-TYPE --to TO --to-type TO-TYPE [--debug] [--s3-access-key S3-ACCESS-KEY] [--s3-secret-access-key S3-SECRET-ACCESS-KEY] [--s3-namespace S3-NAMESPACE] [--s3-endpoint S3-ENDPOINT] [--s3-force-path-style] [--s3-region S3-REGION]

Options:
  --from FROM, -f FROM [env: SEARCHDUMP_FROM]
  --from-type FROM-TYPE, -F FROM-TYPE
  --to TO, -t TO [env: SEARCHDUMP_TO]
  --to-type TO-TYPE, -T TO-TYPE
  --debug, -D
  --s3-access-key S3-ACCESS-KEY [env: SEARCHDUMP_S3_ACCESS_KEY]
  --s3-secret-access-key S3-SECRET-ACCESS-KEY [env: SEARCHDUMP_S3_SECRET_ACCESS_KEY]
  --s3-namespace S3-NAMESPACE [env: SEARCHDUMP_S3_NAMESPACE]
  --s3-endpoint S3-ENDPOINT [env: SEARCHDUMP_S3_ENDPOINT]
  --s3-force-path-style [env: SEARCHDUMP_S3_FORCE_PATH_STYLE]
  --s3-region S3-REGION [env: SEARCHDUMP_S3_REGION]
  --help, -h             display this help and exit

Support

Sources

  • ElasticSearch (v6, v7)
  • OpenSearch (v1)

Dest

  • AWS S3 compatible storage (e.g: MinIO, AWS S3)

Project Status

Early stage - it works but it's limited.

PRs are welcome.