mongoのバックアップ方法
mongoのバックアップ方法
mongodump -h (mongoのIPアドレス:ポート) -d (データベース名) --out (テーブル名)
例:
# すべてのテーブルをバックアップする場合:
mongodump -h 192.168.105.2:30005 -d test --out all
参考:
Install MongoDB Community Edition on Ubuntu
mongodump -h (mongoのIPアドレス:ポート) -d (データベース名) --out (テーブル名)
例:
# すべてのテーブルをバックアップする場合:
mongodump -h 192.168.105.2:30005 -d test --out all
Install MongoDB Community Edition on Ubuntu