Once an OpenWrt configuration is stable, the first thing I usually do is create a backup.1 It makes recovery much faster after testing packages, changing firewall rules, or upgrading firmware.
When should you create a backup?
Back up before:
- Upgrading firmware.
- Changing network, VLAN, or firewall settings.
- Installing packages that affect DNS, DHCP, or Wi-Fi.
- Moving a configuration to the same model and compatible firmware version.
A configuration backup does not replace firmware verification. A backup from one router may not be suitable for another model.
Back up with LuCI
- Log in to LuCI.
- Open System → Backup / Flash Firmware.
- Under Backup, click Generate archive.
- Download the
.tar.gzfile. - Name it with the model and date, for example
openwrt-router-2026-08-27.tar.gz.
Do not keep the only copy on the router. I usually save one copy on the computer and another in a separate backup location.
Back up from the command line
Create a configuration archive with:
| |
Then download it with SCP:
| |
Files in /tmp disappear after a reboot, so download the archive immediately.
Inspect the backup
Before storing it long term, list the archive contents:
| |
Do not publish a backup file. It may contain network identifiers, Wi-Fi keys, SSH keys, or service credentials.
Restore with LuCI
- Open System → Backup / Flash Firmware.
- Select the backup file under Restore backup.
- Click Upload archive.
- Review the changes.
- Confirm the restore and wait for the router to reboot.
Do not remove power during the restore. If the restored configuration breaks connectivity, use Ethernet or console access to return to LuCI or SSH and correct it.
Restore from the command line
Restore an archive with:
| |
Then reboot:
| |
Use backups only with compatible devices. When changing models, use the old configuration as a reference and configure the new router manually instead of restoring everything.
Restore checklist
- Correct model and OpenWrt version.
- Backup opens and contains files.
- Physical or console access is available if restore fails.
- Current management IP has been recorded.
- Do not restore the entire archive when only a few settings are needed.
Conclusion
A configuration backup is small but extremely valuable once a router is stable. I create one before major changes and keep a verified copy instead of relying only on the configuration currently running on the router.


Góp Ý / Bình Luận / Đánh giá