I had a email backup script working in 3.3 that doesn’t in 3.4. The script is as follows:
/system backup save name=([/system identity get name] . “-” . [:pick [/system clock get date] 7 11] . [:pick [/system clock get date] 0 3] . [:pick [/system clock get date] 4 6]); /tool e-mail send to=“harbl@4chan.org” subject=([/system identity get name] . " Backup " . [/system clock get date]) file=([/system identity get name] . “-” . [:pick [/system clock get date] 7 11] . [:pick [/system clock get date] 0 3] . [:pick [/system clock get date] 4 6] . “.backup”); :delay 10; /file rem [/file find name=([/system identity get name] . “-” . [:pick [/system clock get date] 7 11] . [:pick [/system clock get date] 0 3] . [:pick [/system clock get date] 4 6] . “.backup”)]; :log info ("System Backup emailed at " . [/sys cl get time] . " " . [/sys cl get date])
When I run the script from the prompt I get
Saving system configuration
Configuration backup saved
interrupted
input does not match any value of file
The script writes a file named mikrotik,-,2008,mar,10.backup which seems like the system can’t find when it looks for the file to send… Any thoughts would be appreciated.
The same happen to me in 3.7
I’ve got error when I try to run this script from console and it doesn’t work with scheduler. But when I run it with winbox I 've recieved email backup despite that run counter says 0.
I can’t find working script for backup for 3.7