Hi, I bought 2 identical Netgear R6260s for the purpose of OpenWrt. One of them is configured and in use, while the other being the backup device just in case the first one fails. What's the best way to clone/migrate the configuration to the backup device so it's plug and go?
My first inclination is just to back up the tar files and restore to the 2nd device, but seems like I might run into MAC and other issues? My setup is mainly Wireguard, pbr, and static DHCP leases.
I suppose you don't want two main routers in the same network, unless you are not configuring two dumb AP's with assigned static address. In any case you can manually modify the device MAC address of the 2nd device from LUCI > Interfaces/Devices/Configure and avoid MAC address mismatch.
Some models will read the factory MAC address from flash only once during the first boot, and copy it into device sections in /etc/config/network. If it is that kind, in order to ensure the MAC stays unique you'd need to modify the file when moving it around.
Other models directly read the factory MAC from a separate flash partition on every boot, and factory MACs are not included in the config files.
That is a sure way to permanently damage your device for good.
On the one hand it's very risky business, a tiny typo here or there will hard-brick the device, on the other hand you run into jeopardy overwriting MAC addresses and wireless calibration data, which is just as fatal. Furthermore on NAND devices, such as these in question, you would also damage the ECC data for your NAND (unless you really know how to use your tools - and which ones), which would also be a fatal damage to your device.
Never, ever, do anything like this - unless you really, really, really know what you're doing - in which case you wouldn't have asked in the first place.