I am writing some scripts & Scheduler tasks to do backups of the config.
I tested them on one RB and then did an export of the script and scheduler config so I could paste it into the console on the other boards.
The export seems to be broken - it splits lines arbitrarily (for example in the middle of a keyword) and indents the next line - then when it is imported this puts extra white space into the keyword and it fails.
Here is a simple example
add interval=1d name="dns entry test" on-event="/ip dns static enable [/ip d\
ns static find name=*.gladiatus.com]\r\
\n/ip dns static enable [/ip dns static find name=\".*.notdoppler\\\\.com\
\"]\r\
\n\r\
\n/ip dns flush" policy=\
ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive,api \
start-date=jun/14/2013 start-time=18:00:00
As you can see at the end of the first line it splits in the middle of ‘dns’…
Also I am not sure if all the \r \n characters are supposed to be there…
These were pasted / edited in the GUI schedule editor.
The original lines are :
/ip dns static disable [/ip dns static find name=".*\\.gladiatus\\.com"]
/ip dns static disable [/ip dns static find name=".*.notdoppler\\.com"]
/ip dns flush
This is worse in the backup script which is longer…