Telegram bot untuk backup konfigurasi MikroTik secara otomatis via SSH.
- ⏰ Scheduled Backup - Backup otomatis dengan cron schedule (default: setiap hari pukul 18:00)
- 📬 Telegram Notification - Notifikasi status backup langsung ke Telegram
- 🔐 SSH Secure - Koneksi SSH encrypted ke MikroTik
- 💾 Auto Storage - Backup file disimpan dengan timestamp
- 🔄 Retry Logic - Auto retry jika backup gagal
- 📊 Manual Trigger - Bisa trigger backup manual via Telegram command
git clone https://github.com/abcdefak87/mikrotik-auto-backup-bot.git
cd mikrotik-auto-backup-bot
npm installCopy .env.example ke .env dan isi:
cp env.example .envEdit .env:
# Telegram Bot
TELEGRAM_BOT_TOKEN=your_bot_token
TELEGRAM_CHAT_ID=your_chat_id
# MikroTik
MIKROTIK_HOST=192.168.88.1
MIKROTIK_USER=admin
MIKROTIK_PASSWORD=your_password
MIKROTIK_PORT=22
# Backup Schedule (cron format)
BACKUP_SCHEDULE=0 18 * * *npm startmikrotik-auto-backup-bot/
├── src/
│ └── index.js # Main bot code
├── data/ # Backup storage
├── .env # Environment config
├── .env.example # Template config
├── package.json
└── README.md
- Node.js - Runtime
- node-telegram-bot-api - Telegram bot framework
- ssh2 - SSH connection
- node-cron - Job scheduling
- dotenv - Environment management
MIT License - see LICENSE for details.
Made with ❤️ by Sanex