Scrip and schedule - problem with export command

Hi

I have the script:

add name=backup policy=ftp,reboot,read,write,policy,test,winbox,password,sniff source=
":log info "Start Backup..."\r
\n:global backupfile ([/system identity get name])\r
\n/system backup save name=($backupfile);\r
\n/export file=($backupfile);\r
\n:log info "Finished Backup Script!"\r
\n"

and the schedule:

add comment="" disabled=no interval=1m name=schedule2 on-event=
"/system script run backup" policy=
reboot,read,write,policy,test,password,sniff start-date=jan/01/1970
start-time=00:00:00

When I run the script only the file is created, but when it's run from the schedule it's NOT.

A …

Mikrotik 3.24 on x86

replace “/system script run backup” with just “backup”

Super. THX