@bifot/mongodb-backup-bot
v1.0.1
Published
Telegram bot for backup your MongoDB data.
Downloads
6
Maintainers
Readme
@bifot/mongodb-backup-bot
Bot which sends your MongoDB backups in a telegram channel.
Install
$ npm i @bifot/mongodb-backup-bot -S
Usage
const BackupManager = require('@bifot/mongodb-backup-bot');
new BackupManager({
token: process.env.TOKEN,
channelId: process.env.CHANNEL_ID,
interval: 10,
databases: [{
name: process.env.MONGODB_NAME,
port: process.env.MONGODB_PORT,
username: process.env.MONGODB_USER,
password: process.env.MONGODB_PASSWORD,
}],
}).start();