Scripts Úteis para Mikrotik Router OS

Download PDF

Seguem alguns scripts úteis para Mikrotik:

BackUp diário:

/system script
add name=backup_diario_cw policy=\
ftp,reboot,read,write,policy,test,winbox,password source=\
“/sy ba sav name=mk_cw.backup”

 

Script para BackUp com envio por email: (atente-se ao detalhe de alterar onde está escrito seu-e-mail@provedor.com para o email que irá receber o backup!)

# Script para Backup

/system script
add name=Backup policy=\
ftp,reboot,read,write,policy,test,winbox,password,sniff source=\
“/system backup save name=Backup”
add name=Email policy=ftp,reboot,read,write,policy,test,winbox,password,sniff \
source=”/tool e-mail send to=seu-e-mail@provedor.com subject=Backup_Mikr\
otik file=Backup.backup”

# Script para Agendamento

/system scheduler
add comment=”” disabled=no interval=1d name=Backup on-event=Backup \
start-date=apr/06/2006 start-time=00:00:00
add comment=”” disabled=no interval=1d name=Email on-event=Email start-date=\
apr/06/2013 start-time=00:01:00