From the instructions on https://github.com/Xentrk/nvram-save-restore-utilityWould this script be helpful when upgrading from a non HND router to a HND one? For example, it seems the dhcp client list is stored differently.
If your router needs a factory reset, usually importing saved configs of any kind will just import the existing problem with it. There is still no replacement for a M&M.Couple of queries:
Thanks
- If I use this script to restore the backup made of the nvram and jffs, would the router be restored and configured exactly as it was before the factory reset, even including all setting for the scripts & addons?
- I often have read on this forum that restoring settings is not really advised and kind of goes against what the factory restore is used for. Is this still the case with this utility, or does it do things in a 'cleaner' way somehow?
Indeed, and entirely true if the factory reset is being done to eradicate known glitches or problems. However, if the factory reset is called for by Merlin when installing an update, or if your are migrating to a new router, or you have decided to carry out a factory reset as a preventative, good-practice measure, then this Utility is your friend. Having said that, I think I would do an M&M for a new router anyway.If your router needs a factory reset, usually importing saved configs of any kind will just import the existing problem with it. There is still no replacement for a M&M.
+1 on this. Solved a suite of gremlins I had.... a full M&M Config will probably be needed. Of course, do a quick search for these future gremlins and even post a question or two to get a possible solution. But often, an M&M Config is a faster and better way to get your router and network back to a good/known state.
+2 Just got this new RMAed router. Same model and all but still manual config was called for as it shipped with stock firmware.@Ronald Schwerer a few points:
@martinr is not the script author. @Xentrk is the current one.
The script won't know what is 'current' or not, I would not be using it in this case.
Moving from stock to RMerlin firmware (and vice versa) I would suggest a full M&M Config be performed. Not only does it start you with the defaults of the firmware you will be using, but it should also get you to question any settings you think you may need to carry over to a new version too. Start with the M&M Config suggested defaults and only change what you need.
With all the above said, if you aren't having any problems currently, I would put this off.
But, with the knowledge that if unexplainable gremlins and bugs show up in the future a full M&M Config will probably be needed. Of course, do a quick search for these future gremlins and even post a question or two to get a possible solution. But often, an M&M Config is a faster and better way to get your router and network back to a good/known state.
OOOps. Sure enough. Sorry Xentrk (I bet he's in bed asleep by now). I'll edit my post.
I suspected at first it was a rote dump of name/values pairs, but when I saw the organization of the tags under many specific categories, I thought maybe the nvram_save.sh script only went after specific tags.The script won't know what is 'current' or not, I would not be using it in this case.
Yah, that's how I feel at the moment. I installed Merlin on an identical backup router. First I cleared NVRAM then I installed the original one's backup settings file. It went so well, I swapped out the old one as a test. I expected problems but other than NVRAM space and ssh keys needing to be regenerated (for communicating between the other clients), it was "perfect". I did have to re-discover my AiMesh node. It's been running fine for a couple days.With all the above said, if you aren't having any problems currently, I would put this off.
Exactly! Take for instance the changes from 384.13 to 384.14 using this utility to restore settings from .13 to .14 would have messed things up pretty bad nvram wise. This is just one of many examples.@Ronald Schwerer, using a saved backup config file between routers (even identical models) isn't recommended. You're asking for possible major future trouble doing this.
The script can't possibly know what future firmware(s) you'll try to restore these settings to.
Nor can it adjust to those future unknowns in any intelligent way. It may be able to guess, but for me, that is not enough.
I have installed NVRAM Save/Restore Utility earlier before it was added to amtm.amtm 3.1.3 is now available
What's new
- Adds support for nsrum - NVRAM Save/Restore Utility to amtm.
[2] Check for updates to existing installation
[3] Force update existing installation
Option ==> 2
This option will check your current installation and update any files that have changed
since you last installed the repository. Updating is highly recommended to get the most recent.
files. Chosing this option will not update missing files. Select the install option from the
menu to reinstall missing files
Would you like to check and download any files that have been updated?
[1] --> Confirm
[2] --> No
[1-2]: 1
MD5 hash of clear-maclist.sh matches - skiping download clear-maclist.sh
No new version of jffs-restore.sh to update - latest is 30.3.0
MD5 hash of jffs-restore.sh matches - skiping download jffs-restore.sh
MD5 hash of nvram-excp-merlin.sh matches - skiping download nvram-excp-merlin.sh
MD5 hash of nvram-hnd-migr.sh matches - skiping download nvram-hnd-migr.sh
MD5 hash of nvram-merlin.ini matches - skiping download nvram-merlin.ini
No new version of nvram-restore.sh to update - latest is 30.3.0
MD5 hash of nvram-restore.sh matches - skiping download nvram-restore.sh
MD5 hash of nvram-sample.ini matches - skiping download nvram-sample.ini
No new version of nvram-save.sh to update - latest is 30.3.0
MD5 hash of nvram-save.sh matches - skiping download nvram-save.sh
MD5 hash of nvram-user-sample.sh matches - skiping download nvram-user-sample.sh
MD5 hash of save-mynvram.sh matches - skiping download save-mynvram.sh
Update of nvram-save-restore-utility completed
Press enter to continue
Yes. Running option "[5] Update NVRAM Save/Restore Utility Menu" fixed the situation.an additional option to update existing installation files (option 4 or 5).
usr_name@RT-AC86U-4608:/jffs/configs# cat profile.add
alias nsru='cd /tmp/mnt/WD1tb/nsru'
alias nsrum='sh /jffs/scripts/nsrum'
usr_name@RT-AC86U-4608:/tmp/home/root# nsru
-sh: cd: can't cd to /tmp/mnt/SNB/nsru
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!