VRRP config sync

Hi,

I would like to keep my backup VRRP routers config synced (firewall/mangle/hotspot/vpn etc).
Network is http://forum.mikrotik.com/t/hardware-fault-tollerance/34888/1


I want to refine idea posted in http://forum.mikrotik.com/t/vrrp-config-sync/33709/1

So i want to do two script: one running on master router (R1) to export configuration, one running on backup router (R2) to delete actually configuration and import R1 configuration.
Is there a way to export all configuration except a part (all router config except ip address/vrrp and scripts sections, these are the only two parts differents from R1 and R2)?
How to remove old configuration before import in R2?

Someone may help me writing these scripts?

Thanks in advance.
v.










Thanks

It would be really hard to make it work by scripts.
Best way to do it would be API. Write an application that connects to first router, reads configuration that must be synchronized and then connect to second router, compare configurations and modify if necessary.

Ok, this is good.
Someone has just do this sync with C++ or PHP API?

Thanks in advance
v.