+ Responder ao Tópico



  1. #1

    Padrão Script mikrotik auto backup de log por e-mail

    add name=autobackuplog policy=\
    ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive,api \
    source=":global thisdate [/system clock get date]\r\
    \n\r\
    \n:global thistime [/system clock get time]\r\
    \n\r\
    \n:global datetimestring ([ick \$thisdate 7 11] . [ick \$thisdate 0 3]\
    \_. [ick \$thisdate 4 6] . \"-\" . [ick \$thistime 0 8])\r\
    \n\r\
    \n/log print file=\"MikroTik-\$datetimestring\"\r\
    \n:delay 5s\r\
    \n/tool e-mail send to= [email protected] subject=\"NOME DO LOG Log B\
    ackup\" from= [email protected] file=\"MikroTik-\$datetimestring\" t\
    ls=yes server=74.125.130.109\r\
    \n:log info \"send e-mail finished\"\r\
    \n:delay 60s\r\
    \n/file find name=\"MikroTik-\$datetimestring\" \r\
    \n/file rem \"MikroTik-\$datetimestring\" \r\
    \n:log info \"delete Log backup finished\"
    Última edição por sosprovedor; 26-07-2013 às 01:18. Razão: Atualizar