Script to restore all collections from mongodump

Feed this script the path to the dump directory created from mongodump to restore all collections. Handy to copy all mongo data to a new server.