MIKROTIK ROUTEROS BACKUP TO MAIL SCRIPT GENERATOR - ROS v6.xx

Attention! We do not send your MikroTik backup file to our email, but you can use our mail server to send the file to your email. if you don't like it you can use your own email server.

Copy-Paste the Script to the Terminal
###################################################
# Mikrotik RouterOS Backup to Mail Generator
# Date/Time:
# Created By: BuanaNETPBun.Github.io - fb.me/buananet.pbun
###################################################
/tool e-mail set address="74.125.200.109" from="From Router Load Balancing" password="rhcylubiwfhxycee" port="587" start-tls="yes" user="backup.mikrotik.ros@gmail.com"
/system scheduler rem [find name=BACKUP-TO-MAIL]
/system scheduler add interval=7d name=BACKUP-TO-MAIL on-event="#=======================================================\r\
\n# Mikrotik RouterOS Auto Backup to Mail by Buananetpbun.github.io\r\
\n#=======================================================\r\
\n:global date [/system clock get date]\r\
\n:global d [:pick \$date 4 6]\r\
\n:global m [:pick \$date 0 3] \r\
\n:global y [:pick \$date 7 11]\r\
\n:log warning \"-> Backup to Mail Now\"\r\
\n:global backupfile ([/system identity get name] . \"-\" . \"\$m-\$d-\$y\")\r\
\n/system backup save name=\$backupfile\r\
\n:delay 20s\r\
\n:log warning \"-> Backup Being Emailed\"\r\
\n/tool e-mail send to=\"mail@your-mail.com\" subject=([/system identity get name] . \" - \". [/system clock get time] . \" - \" . [/system clock get date] . \"\") from=\"From Router Load Balancing\" file=(\"\$backupfile\" . \".backup\")\r\
\n:delay 20s\r\
\n:log warning \"-> Backup File Remove\"\r\
\n/file remove (\"\$backupfile\" . \".backup\")\r\
\n:delay 5s\r\
\n:log warning \"-> Backup To Mail Finished\"\r\
\n" policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon start-time=startup