The following simple export script runs fine from the command line, but fails after printing “Beginning” to the log when run from either the scheduler or by clicking the “Run Script” button in WebFig:
:log info "Beginning"
/export compact file=test.rsc
:log info "Done."
Full properties:
name="test" owner="admin" policy=reboot,read,write,policy,test,password,sniff,sensitive last-started=sep/08/2014 15:09:35 run-count=6
source=
:log info "Beginning"
/export compact file=test.rsc
:log info "Done."
Version (MikroTik RB1100AHx2):
> /system package print
Flags: X - disabled
# NAME VERSION SCHEDULED
0 system 6.12
1 ntp 6.12
2 ppp 6.12
3 dhcp 6.12
4 security 6.12
5 advanced-tools
Unfortunately, no error code or message is returned (as captured by ) and wrapping the command in a try/catch block triggers the catch in all but the command line. I wish to schedule this as part of a bigger backup operation, but I have been unsuccessful in getting over this hurdle. For whatever reason, “/system backup” works fine, but “/backup file” consistently fails from the scheduler.