scripting Mikrotik's RouterOS, SwitchOS, routers, switches, devices
This is decent MikroTik OS configuration backup to e-amil script.
Once executed:
- it creates device configuration backup file
- then sends email
- then delete backup
- then log (save) action in router logs
- you need to configure SMTP to properly send emails - "Tools" -> "email"
- you need to copy/paste script to your router "System -> "Scripts"
- name it as follow: backup-to-email
- change this line with your email: /tool e-mail send file="$filename" to="[email protected]" subject="$subject";
- at this time feel free to hit "Run Script" button
- create "System" -> "Scheduler" event with following "On event" field:
- /system script run backup-to-email