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

How do you restore the data from s3 using lambda? #4

Open
Yaowenjie opened this issue Mar 28, 2018 · 2 comments
Open

How do you restore the data from s3 using lambda? #4

Yaowenjie opened this issue Mar 28, 2018 · 2 comments

Comments

@Yaowenjie
Copy link

Hi,

This is a good example of backup mongodb by lambda function exactly. But as the title said, do you have some corresponding method to restore them using lamdda function (Maybe, it's not necessary to do like this)?

Additionally, where did your mongodump bin file come from?

Thanks! :)

@teohub
Copy link

teohub commented Mar 28, 2018

(I'm not the author, but I played a bit with this code)

  1. you can use mongorestore bin file

  2. I suppose the mongodump file has been manually retrieved from /usr/local/bin/mongodump of the developer's local machine. Which can be outdated by the way. The fact there are other libs in the solution makes me think those are required when running the code into the lambda blackbox environment.

@Yaowenjie
Copy link
Author

Thanks @teohub !

Yeah, I used mongorestore bin file which found in /usr/local/bin/mongodump on my mac. But it looks there are still some issues with it. Maybe people like restore it manually, cause all of us don't like the situation, which is rare, that we need to restore our backup data.

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

No branches or pull requests

2 participants