0

I want to create a backup and restore in Meteor.js, but I don't have any solution to create a backup and restore MongoDB database with Meteor.js. I need some Guide line to do this.

Phirum
  • 655
  • 2
  • 6
  • 12

2 Answers2

0

Restore datatabase : mongorestore --port --db . backup/dump : mongoimport/mo

Farid Blaster
  • 974
  • 1
  • 9
  • 23
  • I want to create a backup and restore from webpage not from cmd because after I built a complete Web App, I will need a page for create backup and restore. – Phirum Jul 02 '15 at 01:32
0

To connect to the Mongo database for your local (or inner) mongodb of meteor, enter in cmd (in the folder of your project):

meteor mongo

checkout also : Is there a simple way to export the data from a meteor deployed app?

Community
  • 1
  • 1
Zeev G
  • 2,191
  • 21
  • 37
  • I want to create like a webpage that I can backup and restore MongoDB from meteor client. – Phirum Jul 01 '15 at 11:19
  • you will have to execute a shell command that does mongorestore. first try to do it manually in the cmd(shell) and then in meteor – Zeev G Jul 01 '15 at 11:37