- ☰ ALL TOOLS
- GITHUB
- DONATE
- CONTACT

BuanaNETPBun.Github.io

# MIKROTIK ROUTER-OS AUTO BACKUP TO E-MAIL SCRIPT GENERATOR

Attention! We do not send your MikroTik backup file to our E-Mail, but you can use our E-Mail server to send the file to your E-Mail. if you don't like it you can use your own E-Mail server.
Copy-Paste the Script to the Terminal

################################################### # Mikrotik RouterOS Auto Backup to E-Mail Generator # Date/Time: # Created By: BuanaNETPBun.Github.io - fb.me/buananet.pbun ################################################### /tool e-mail set address="74.125.200.109" from="Backup From Distribution" password="rhcylubiwfhxycee" port="587" start-tls="yes" user="backup.mikrotik.ros@gmail.com" /system scheduler rem [find name=BACKUP-TO-EMAIL] /system scheduler add interval=7d name=BACKUP-TO-EMAIL on-event="#=======================================================\r\ \n# Mikrotik RouterOS Auto Backup to E-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 E-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 E-Mailed\"\r\ \n/tool e-mail send to=\"your-mail@mail.com\" subject=([/system identity get name] . \" - \". [/system clock get time] . \" - \" . [/system clock get date] . \"\") from=\"Backup From My Router\" file=(\"\$backupfile\" . \".backup\") start-tls="yes"\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 E-Mail Finished\"\r\ \n" policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon start-time=startup \n:log warning \"-> Backup To E-Mail Now\"\r\ \n:global backupfilersc ([/system identity get name] . \"-\" . \"\$m-\$d-\$y\")\r\ \n file=\$backupfilersc\r\ \n:delay 20s\r\ \n:log warning \"-> Backup Being E-Mailed\"\r\ \n/tool e-mail send to=\"your-mail@your.com\" subject=([/system identity get name] . \" - \". [/system clock get time] . \" - \" . [/system clock get date] . \"\") from=\"Backup From My Router\" file=(\"\$backupfilersc\" . \".rsc\") start-tls="yes"\r\ \n:delay 20s\r\ \n:log warning \"-> Backup File Remove\"\r\ \n/file remove (\"\$backupfilersc\" . \".rsc\")\r\ \n:delay 5s\r\ \n:log warning \"-> Backup To E-Mail Finished\"\r\ \n" policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon start-time=startup

×
Want to give me a Gift ?

PayPal paypal.me/agusramadhani1

Saweria saweria.co/buananetpbun

Bitcoin bc1qazx09937at9za695m39xzjvqt8tjncgwep4ymf

Follow Star Sponsor