mongodb数据库的备份和还原
./mongodump -h 127.0.0.1:27017 --authenticationDatabase=admin -u admin -p 123qwe --authenticationMechanism=SCRAM-SHA-1 -d auth -o /data/hadoop/export/bp2_yn/cold/ >dump.log
./mongorestore --host 127.0.0.1 --port 40000 --authenticationDatabase=admin -u bigdata -p bigdata1q2w3e1q --authenticationMechanism=SCRAM-SHA-1 -d auth /data/hadoop/export/bp2_yn/cold/auth >restore.log

浙公网安备 33010602011771号