This PHP class allows you to dump any local mongoDB database, utilizing shell command to do so. Support for collections coming eventually.