MongoDB备份以及恢复

MongoDB备份以及恢复

Posted by Carlos on April 22, 2018

备份:mongodump -u togeek -p tuji2013 -h localhost –port 23456 -d telespy -o d:\ –authenticationDatabase admin

还原:mongorestore -h 192.168.17.129:27017 -d itcast_restore –dir /home/mongodump/itcast/