Combine OpenWrt firmware image with backup configuration for automatic restore after flashing

Hello,

I would like to know if it is possible to combine an OpenWrt firmware image with a configuration backup file.

My requirement is that whenever I flash a new OpenWrt firmware, all my existing settings (network, firewall, wireless, installed packages, etc.) should be restored automatically, without manually uploading or restoring a backup file after flashing.

I understand that OpenWrt normally uses:

  • A firmware image

  • A separate configuration backup file

But I want to ask:

  1. Is there any supported or recommended way to embed the backup configuration into the firmware image?

  2. Can this be achieved using firmware image customization, build tools, or first-boot scripts.

Any guidance, documentation links, or best-practice suggestions would be greatly appreciated.

Thank you.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.