MongoDb 草记


备份

mongodump -h dbhost -d dbname -o dbdirectory

恢复

sudo mongorestore -h host --db database --dir mongodata/database

Author: winjeg
Reprint policy: All articles in this blog are used except for special statements CC BY 4.0 reprint policy. If reproduced, please indicate source winjeg !
  TOC