Community discussions

MikroTik App
 
koleny
just joined
Topic Author
Posts: 7
Joined: Wed Sep 06, 2017 9:47 am

make a backup from ccr to another

Thu Sep 07, 2017 1:18 pm

hello to all, i want to make a regular check for update and if something is changed do it.
I tried with some bash scripts and i did it, but problem is that lines which are changed are a part of a coomand
/interface wireless

set [ find default-name=wlan1 ] ssid=test
so if I change only ssid, my awk command for checking two backup files (one for today and for tommorow) give me output
set [ find default-name=wlan1 ] ssid=test1
but I cant paste it in terminal of ccr, it wont work, it must with a
/interface wireless
first. In fact Ineed a parser which identifies not the changed lines but the changed configuration commands leading to a different setup. For this I need a language interpreter (of which the parser is one part, the lexical analyser is the other) for the routers configuration language.

Can you give me some propose or something?