TechInfoDepot:DD-WRT/Backup settings and restore them

Broadcom
Credit to hardwarewizard and frater

Reference Thread

If you have OTRW installed, this script is included in and the resulting files will be saved to

D-link DIR825
By popamor Source

Here is what I have done. Since there is no sort nor tee on DIR825 and looking at the script, the sort process is used to sort the variables. The next step looks up each variable from the vars_to_skip and write then out to the dangerous file. I think it is safe to remove the sort, so I did. Next the "tee" issue. It made the code really pretty "one-liner" to write out to the various files. I had to split these lines into separate ones and just used ">" and ">>". Frater, please chime in if what I did is dangerous. It worked on my DIR825 to restore my settings after I upgraded to the latest BS release and 30-30-30.

I did not bother with the ftp part as I am doing this on a USB memory stick. I do not know if that works or not. Did not have the time to play with it.

Here is the updated script.

Files
The vars_to_skip file

The vars_preferred file. This is the file you add your vars to that you want to backup.