How are you logging on? That's not the standard shell prompt. Using Entware/Optware?@john9527, when I was saying that I was not passing the current directory it meant that I was not doing this:
However I use ./ to launch the script otherwise this will not push thruCode:[admin@nvram-save-r22]$ ./nvram-save.sh /currentdirectory
You have a couple of ways to go here....I'm looking at make changes to the VLAN configuration on my router.
If I backup my settings via the GUI or using this script , will I be able to revert back if I mess things up ?
Thanks
You have a couple of ways to go here....
First, as you develop your VLAN config, do so via telnet/ssh. AFAIK the router is very 'protective' of its VLAN setup, and rewrites it at every boot. So a reboot should allow you to recover from any problems at this stage.
As a safety measure for the first step, and when you start transferring things to the necessary startup scripts, you can use the gui built in save configuration to recover. If one of your scripts causes things to hang at boot, use the WPS reset to factory defaults (which will disable script execution). Then you can edit your scripts and restore the saved config. Just don't try and use a saved config from one code level on a different level.
You can also use this utility in much the same way to recover from a bad script. This utility also can save and restore a backup of the /jffs space, so would allow you to revert back from a bad script a bit easier.
Hi!LATEST RELEASE: Release 22
27-October-2015
nvram-save-r22.zip
I'm sure this is answered somewhere, but I can't find it - How is saving the NVRAM different than saving the configuration from within the router web interface?
This same question was asked today in the new firmware post. Does rhis help? http://www.snbforums.com/threads/asuswrt-merlin-380-57-is-now-available.29308/page-9#post-226810
and see joegreat's reply at #176 in the same topic.
First time I used this utility (v.22) I have done a migration from AC66U to AC87U, everything went well.
OpenVPN settings, only the certificates .crt file and UDP ports weren't restored so it looks that these settings skipped in John's tool.
But a great utility!
A couple of different scenarios possible here....First time I used this utility (v.22) I have done a migration from AC66U to AC87U, everything went well.
OpenVPN settings, only the certificates .crt file and UDP ports weren't restored so it looks that these settings skipped in John's tool.
But a great utility!
- ..
- If both the save and restore are to >=378.55, the certs are only in jffs, so you need to run the jffs-restore.
- If going backward (the save was done >= 378.55, and you restore to <378.55, the NVRAM values will not be restored, and you will need to manually re-enter them through the OpenVPN gui.
But that's not a problem, your utility takes out most of type work, the .crt file and UDP port setting is peanut's.(I'll put this on the list to see if I can restore the nvram entries from jffs in this case for a future release)
So... what's the best way to proceed here? I'd like to upgrade my router firmware, but I'd prefer to not lose my VPN settings, port forward settings, SSID settings, etc. Thanks!Can I just restore my saved settings after I do a factory default reset?
No. The idea behind a factory default reset is to have your router start using the NEW default values. If you restore your saved settings, you will overwrite those new values with the old ones, and you are back to square one.
This is similar to having a PC with a corrupted Windows installation. If you reformat, and immediately after you restore a Ghost/TrueImage/Clonezilla backup on top of the reformatted Windows, you are back to where you were before you did all that work.
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!