hex7c0 / mongodb-backup

backup data for mongodb for Nodejs
https://github.com/hex7c0/mongodb-backup
Apache License 2.0
134 stars 49 forks source link

Makes use of the filesystem #29

Open dejagersh opened 5 years ago

dejagersh commented 5 years ago

Even when using streams, it uses the filesystem which makes it unsuitable for cloud platforms like Heroku and AWS Lambda.

brunorib62 commented 4 years ago

In case of using stream, having an extra parameter for the temporary folder, instead of using __dirname, will fix this problem, since in cloud computing they usually make some paths availables (AWS for example we can specify '/tmp' for usage).

lihaibh commented 4 years ago

@thejager If it is still relevant, my own solution for mongodb backup might help you. In my design you can create connectors to data sources for the backup so you can create a connector of S3 or other cloud service and the data will be streamed right into there. I hope it address your issue and will help you. https://github.com/lihaibh/mongodb-snapshot