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"