Example: http://app-dump-example.meteor.com/, or check the /example
folder
Generates a downloadable tar backup of the current mongo database, which can be uploaded to restore.
Use {{> appDumpUI}}
to add download and upload UI to your template.
Secure the download and upload method on the server:
if Meteor.isServer
appDump.allow = ->
# do your own auth here -- eg. check if user is an admin...
if @user?.admin
return true
❗ I have experienced an issue with large grid-fs collections being restored while writes are occuring. This is being looked in to. In the meantime use mongodump
for mission critical operations.
👍 Works on meteor.com hosting.
What's wrong with hitchcott:backup-restore
?
It doesn't work with the meteor.com deployment servers because it requires MongoDB to be installed on the host system.
hitchcott:app-dump
uses a pure node implementation, so does not require mongodump
or mongorestore
. It also uses streams for serving the tar, so it's a bit more efficient and secure.
Tests
Chris Hitchcott, 2014
MIT License
hex7c0 for creating mongodb-backup and mongodb-restore