#########################################################################################################
# MikroTik Auto Update Script #
#########################################################################################################
# Author: Rick Frey #
# email: support@rickfreyconsulting.com #
# Username in MikroTik Forum is rickfrey #
######################################################################################################### #
#########################################################################################################
# Features # #
# -Utilizes the Auto Update feature in the routers to automatically check for newer versions and upgrade#
#########################################################################################################
/system scheduler
add interval=1d name=Upgrade_Router on-event=”/system upgrade\r\
\nrefresh\r\
\n:delay 10\r\
\ndownload 0\r\
\n/\r\
\n/system reboot \r\
\n:delay 60\r\
\ny\r\
\n/” policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive \
start-date=jul/25/2016 start-time=12:00:01
/
Great Script.
I would suggest another that is set on reboot – where it checks for a FirmWare update and if one is available it updates the firmware under /system routerboard as well.
This way – the firmware matches the IOS always
Great stuff Man – keep it up.
Here is another script which does the same and backup data to your email.
https://github.com/beeyev/Mikrotik-RouterOS-automatic-backup-and-update
Thanks for sharing that!