I updated to ROS v6.47.10 and lot of scripts stops working... here I put one of them... it make a .backup and .rsc files and send to email.
The scripts create the two files, send only the .backup but no send .rsc file... (in others RB with the same script, same ROS update, copied and pasted scripts, sends .rsc but no send .backup)... it´s so strange.
email in /tool email are configured and working
Tried to paste line per line on the terminal and no errors shown....
When send the command to send .rsc the terminal saw that sent but no received on the email account.
if I try :put $backupfile and :put $exportfile I got and out the name of the respective files...
I get the code from any webpage, don´t remember.... tried too to enable "Don´t require permissions" with no luck.
Code: Select all
###### Configuracion v0.2
#Email destino
:global emaildest "backup@email.com"
#Email desde el que envias. Debe estar configurado en /tools email
:global emailfrom "backup@email.com"
:delay 15s
:log info "## Backup System Start"
:delay 2s
:log info "## Creando Fichero Backup"
:global backupfile ([/system identity get name] . "-" . \
[:pick [/system clock get date] 4 6] . "-" . [:pick [/system clock get date] 0 3] . "-" . [:pick [/system clock get date] 7 11] . "-" . \
[:pick [/system clock get time] 0 8])
/system backup save name=$backupfile
:delay 30s
:log info "## Creando Fichero Export"
:global exportfile ([/system identity get name] . "-" . \
[:pick [/system clock get date] 4 6] . "-" . [:pick [/system clock get date] 0 3] . "-" . [:pick [/system clock get date] 7 11] . "-" . \
[:pick [/system clock get time] 0 8])
/export file=$exportfile
:delay 30s
:log info "## Enviando email con el export"
/tool e-mail send to=$emaildest subject=([/system identity get name] . \
" Export System") from=$emailfrom file=$exportfile
:delay 50s
:log info "## Enviando email con el backup"
/tool e-mail send to=$emaildest subject=([/system identity get name] . \
" Backup System") from=$emailfrom file=$backupfile
:delay 50s
:log info "## Borrando Fichero Backup"
/file rem $backupfile
:delay 2s
:log info "## Borrando Fichero Export"
/file rem $exportfile
:delay 2s
:log info "## Backups terminados y ficheros enviados"