Skip to content
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

Create restore directory when running "dgraph restore". #4352

Merged
merged 2 commits into from
Dec 11, 2019

Conversation

martinmr
Copy link
Contributor

@martinmr martinmr commented Dec 4, 2019

As of now, "dgraph restore" crashes if the directory passed to the
"-p" flag (the directory where the restored p directories are stored).
This change ensures that dgraph tries to create the directory before
starting to restore a backup.

Tested by modifying the tests to stop manually creating this directory.

Fixes #4315


This change is Reviewable

As of now, "dgraph restore" crashes if the directory passed to the
"-p" flag (the directory where the restored p directories are stored).
This change ensures that dgraph tries to create the directory before
starting to restore a backup.

Tested by modifying the tests to stop manually creating this directory.
@martinmr martinmr requested review from manishrjain and a team as code owners December 4, 2019 23:36
Copy link
Contributor

@manishrjain manishrjain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 3 of 3 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@martinmr martinmr merged commit 47ea63e into master Dec 11, 2019
@martinmr martinmr deleted the martinmr/restore-create-dir branch December 11, 2019 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

During restore, recursively create the restore directory
2 participants