close

# 備份
centos:~ # mongodump [-h <hostname>[:<port>]
centos:~ # ls dump            # 在執行完 mongodump 後, 會將備份資料產生 dump 資料夾

# 恢復
centos:~ # ls dump
centos:~ # mongorestore    # 執行 mongorestore 時, 會讀取 dump 資料夾裡的備份資料 

arrow
arrow
    文章標籤
    CentOS MongoDB
    全站熱搜

    wsunccake 發表在 痞客邦 留言(0) 人氣()