Tech note: MongoDB dump

Sunday, January 26, 2014

To dump (and archive) a MongoDB database (mongod stopped):



mongodump -v --dbpath <path-to-db-directory> -o <output dir>


tar czf dump.tar <output dir>/

You Might Also Like

0 commenti

Subscribe