Backup Luci configuration to flash it on new bought router

Hi all,

I bought new router to have more speed limit.

I'm asking if it's possible to backup configuration of my router to flash it on the new router.

My configuration is set with Luci with basic configuration, pppoe, vlan, firewall rules, dhcp IP static.

I'm on the latest openwrt version 23.0.5.

I know it's possible to do a backup on Luci interface, but i don't know if it's satisfy a completed flash on the new router.

Thanks a lot

No. Each model has subtly different configuration details, so moving a backup from one model to another will not work.

You can probably selectively copy/paste certain parts of your config, but some things are not safe to move over verbatim -- depends on a bunch of things.

The general guidance is to simply use your current router as a reference and then manually re-create that config on the new one.

It's more simple to edit the configuration with command line to do backup and restore with a new one so ?

And, how begin to edit configuration with command line ?

Thanks a lot

Basically, don't do it unless you know what you're doing. If you restore a wrong network or wireless file, you will end up with a device you can't access so you'll have to reset it again.

I find this to be true, personally, but I'm quite accustomed to the way that OpenWrt configurations work. In truth, I actually directly edit the text files.

If you don't currently know how to do this, it will not be faster than reproducing the config via LuCI, and it certainly won't be easier. However, it is a good learning opportunity.

https://openwrt.org/docs/guide-user/base-system/uci