How to export database made in Mongodb to VPS in digital ocean?

0

I have a problem with the export of the database, I have been developing a system (MEAN), and we have used it in an intranet, everything perfect up there, Now we are hiring a VPS and almost everything is already configured, except the database, what I need is to be able to migrate from my local server to the VPS. I have already made backups of my database in local (with mongodump and mongorestore), but how do I upload all my database to the VPS ???

Now google and digitalocean offers an article to import and export mongo. but it is in .json format, besides that it is only a document. in my case my database is in .bson and there are many collections (a complete data base itself). Thanks in advance

    
asked by Juan Manuel Cuba NewMan 01.02.2018 в 14:12
source

1 answer

0

I solved it in this way, the first thing I did was to compress the dump in a zip, then I uploaded it using SCP using ssh. Once on the server unzip the zip and restore the dump and go. Every day, I see what is necessary and practical that is Linux. I hope someone serves my answer

    
answered by 05.02.2018 / 00:57
source