Skip to content

Fix for mongorestore problem #318

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
Nov 6, 2019
Merged

Fix for mongorestore problem #318

merged 1 commit into from
Nov 6, 2019

Conversation

ReyanshKharga
Copy link

mongorestore doesn't work without --gzip option if it was dumped with --gzip option. It throws the following error:
Failed: restore error: error reading oplog bson input: unexpected EOF
Source of solution

The correct mongorestore command should be:
mongorestore --host mongod12.example.com --port 27017 -u admin -p 123456 --oplogReplay --gzip --dir /var/lib/mongodb-consistent-backup/default/20170424_0000/rs0/dump

@delgod delgod merged commit b56164a into Percona-Lab:master Nov 6, 2019
@ReyanshKharga
Copy link
Author

Thanks for accepting the pull request Percona-Lab!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants