Email Backup Script worked in 3.3, doesn't in 3.4

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

why don’t use wiki’s script?

The wiki script doesn’t work either in 3.4, thanks though.

sorry, it’s my fault.
tasted, working, but on 3.3; on 3.4 it have never been tesed by us.

None of my scripts from 3.3 works on 3.4… Running the script in a terminal on 3.4 works, running it via the sceduler, it doens’t do anything…

I’m about to go back to 3.3

shuld guruz say us what to do…
i upgraded 3.3 to 3.4 - no scripts works from scheduler.
under console - works fine

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

Has anybody got the back up script working in 3.4 yet? I am getting this error. Script Error: cannot compare if nothing is more than nothing

3.4 has MAJOR scripting problems and cannot be used for nearly any scripts. Upgrade, I believe its stable with scripting.

try this one (modified yours below): (Also make sure your “/tool email” has proper config.)

:local backupname ([/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])
:local emailaddress "YOUREMAILADDRESS"
:local subject ("{mtbackup} " . [/system identity get name] . " @ " . [/system clock get date])

/system backup save name=$backupname
/tool e-mail send to=$emailaddress subject=$subject file=$backupname
:delay 10;
/file remove [/file find name="$backupname.backup"]
:log info "System backup emailed: $subject"