OpenWrt‎ > ‎


Backup & Restore NVRAM

The following scripts when run on an OpenWrt device will backup the NVRAM settings in format that will permit them to be easily restored.
One of the nice things with this technique is that you can manually edit the resulting file if necessary to add/remove/change some of the settings before restoring them in to a different device if required.

nvram show | sort | sed 's/$/\"/g; s/=/=\"/; s/^/nvram set /' >

The resulting file '' can be run to restore the NVRAM settings.