-d需备份的数据库名,-c需备份的表,-o输出到哪个文件夹,--authenticationDatabase保存用户凭据的数据库
mongodump --host IP_ADDRESS:27017 -u "root" -p "PASSWD" --authenticationDatabase "admin" -d DBname_test -o DBname_test20190328

mongorestore --host IP_ADDRESS:27017 -u "root" -p "PASSWD" --authenticationDatabase "admin" -d DBname_test DBname_test20190328