mongodb-backuper
v1.0.5
Published
mongodb data backup tool
Downloads
10
Readme
Introduction
mongodb-backuper is a mongodb data backup tool based on nodejs. It is very simple, easy to use and free to define your backup rules
Quick Start
var mongodbBackuper = require('mongodb-backuper');
var config = {
host : '127.0.0.1',
port : '27017',
name : 'db_name',
path : '/tmp/backup/'
};
mongodbBackuper.init({
// Backup data storage parent directory
path: config.path,
// Database Connectivity
host: config.host + ':' + config.port,
// Name database
name: config.name,
// Directory named according to date rules (optional)
dateFormate: 'YYYY.MM.DD',
// Keep the backup directory within a few days (optional)
days: 3
});
Dependency
use mongodump Complete database backup from the command line