导出数据
monogo
show dbs
exit
mongodump -h dbhost -d dbname -o dbrectory 用法
mongodump -d yapi -o /home/apps
导入数据
mongorestore -d yapi --drop --dir /home/apps/yapi标签:yapi,--,导出,备份,Yapi,apps,导入,home From: https://blog.51cto.com/jing/6037014
monogo
show dbs
exit
mongodump -h dbhost -d dbname -o dbrectory 用法
mongodump -d yapi -o /home/apps
mongorestore -d yapi --drop --dir /home/apps/yapi标签:yapi,--,导出,备份,Yapi,apps,导入,home From: https://blog.51cto.com/jing/6037014