I am trying to make a complete backup on a LEDE system, however all the posts about doing it are (now) 5+yrs old. I was wondering - how can I backup a system, completely, with absolutely everything on it, to be easily reproduced on same model devices? As in - backup LEDE firmware, backup installed packages, backup settings, everything?
The new devices come with openwrt 15 and tftp at 192.168.1.2 to flash, so I want to create a package and just flash a ready router.
Actually no, I do want to copy everything, including modified luci files, modified uci fiels, installed and configured modules, etc. Basically something like dd tool, but not sure exactly what and how to do it.
If you have multiple routers that are exactly the same model, set up one how you want it then copy its whole firmware partition to a file:
cat /dev/mtd11 > /tmp/firmware.bin
SCP this file out of the router and flash it as a sysupgrade (existing OpenWrt installation is required, this is not a "factory" file). This clones the kernel, rootfs and overlay fs, thus all settings and installed packages are preserved.
Just a quick question - if the one I set up is running latest LEDE and the target devices are running, lets say - OpenWRT 15 - would this also switch them to LEDE, or do I have to first install LEDE and then do this? I assume it will overwrite the openwrt and switch it to LEDE, but we all know what assume means lol.