How do you restore the data from s3 using lambda?
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! :)
(I'm not the author, but I played a bit with this code)
-
you can use
mongorestorebin file -
I suppose the mongodump file has been manually retrieved from
/usr/local/bin/mongodumpof 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.
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.