Hi,
I want to transfer a configuration of a daemon from one router to another one via the network.
Before I'm replicating stuff, is there already some solutions that I could use?
I think I will try to use uci for this...
rsync
scp
sftp
No need to re-invent the wheel. The configuration is in files.
UCI is a convenient run-time access to that information without needing to re-parse or generate syntactically correct changes.
In addition to @jeff's perfect answer, note that some configuration files contain information which is specific for a particular router (e.g. MAC address) and should not be replicated. In this case you may want to write your configuration as a script using a number of uci
commands, send the script to another router and execute it there.