mongodb - Mongorestore of a db causing me trouble -
i'm new mongodb , have hard time backup local db , restore on server. found link on mongo's website : http://www.mongodb.org/display/docs/import+export+tools still have problems restore.
when backup call
mongodump --db gen
then see collections dump in /bin/dump/gen
folder
i copy-paste local server in same folder call
mongorestore --db gen --drop --dbpath dump/gen
but following : error : root directory must dump of single database when specifying db name --db
ok find out i'm doing wrong :
i doing
mongorestore --db gen --drop --dbpath dump/gen
but without --dbpath works fine!
mongorestore --db gen --drop dump/gen
thanks everyone!
Comments
Post a Comment