Community discussions

MikroTik App
 
User avatar
victorsoares
Member Candidate
Member Candidate
Topic Author
Posts: 106
Joined: Thu Feb 15, 2018 6:29 pm
Location: Ubatuba, São Paulo - Brazil
Contact:

E-mail timeout

Tue Mar 27, 2018 11:34 pm

Hi everyone,

I was told by my bosses to set an automatic backup daily for our MK's. I configured an GMail account and it works fine. Then I moved to the scripts. It seems like everything is working fine, but I only get sucess in 1 out of 10 tries. The other times I get an timeout error while sending the e-mail. When I send the e-mail without the backup file the script works fine. Is there something I'm missing here?
I already allowed Google to use devices with low security and activated IMAP.

Here is the script
:log info "Iniciando backup diario";
/system backup save name=CCR-1-diario
:delay 00:00:10
:log info "Arquivo criado, enviando e-mail";
/tool e-mail send to="my@email.com" file="CCR-1-diario.backup" body="Backup da CCR" subject="Backup $[/system clock get date] as $[/system clock get time]"
:log info "E-mail enviado. Backup diario completado"
 
2frogs
Forum Veteran
Forum Veteran
Posts: 713
Joined: Fri Dec 03, 2010 1:38 am

Re: E-mail timeout

Wed Mar 28, 2018 2:39 am

Try with a longer delay between backup and sending email, 10 seconds may not be long enough.

Who is online

Users browsing this forum: kolt and 17 guests