Skip to content

Use existing Elasticsearch indices to speed up transfer during a restore #310

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 2, 2017

Conversation

snh
Copy link
Member

@snh snh commented Jun 2, 2017

When restoring Elasticsearch indices, leverage the --copy-dest= rsync option so that any existing indices on the target appliance are used as a base.

While rsync would typically do this without needing this additional option, our use of a temporary staging directory - /data/user/elasticsearch-restore - necessitates the addition of this flag.

This will help minimise unnecessary re-transfers of data during incremental restores, with the aim of only transferring data that has changed.

Testing has shown this brings improvements in various scenarios, and as yet no downside has been identified.

/cc @github/backup-utils

@snh snh merged commit 7fe685e into master Jun 2, 2017
@snh snh deleted the snh/es-rsync-incremental branch June 2, 2017 18:16
@snh snh mentioned this pull request Jun 7, 2017
jeluhu pushed a commit that referenced this pull request Jun 12, 2023
@jeluhu jeluhu mentioned this pull request Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants