Dear Tikers,
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.
Z