Option to Import/Export settings as text files. (Can be as addition to current solution)

Issue #27 new
Albert Jasinski created an issue

Static DHCP list is nightmare to revert after configuration reset, but everybody knows its just one of these settings that we would like to never set up again.

Text files (or XML) would let users to copy and paste fragments of old settings file to recent version.

I think everyone would be grateful.

PS. Someone already made nvram cfg parser, so it just need to be implemented - its MIT licenced:

https://github.com/doublerebel/nvram-cfg-parser

Comments (3)

  1. Fermulator

    Right because admin-config.asp currently saves and restores via some binary format. (https://bitbucket.org/kille72/freshtomato-arm/src/b16c3da5615ef2318a500f20e645dc359c6dff6a/release/src-rt-6.x.4708/router/www/admin-config.asp#lines-37) TBH I can’t see if its just a raw binary blob, what the encoding is, or … AH this answers my question: https://github.com/doublerebel/nvram-cfg-parser#arm

    Also worth noting:

    I stumbled over https://github.com/wanderleyteixeira/nvram-backup/blob/master/nvram-backup.sh some time ago, and was looking into a way to automate this myself.

    and https://www.linksysinfo.org/index.php?threads/nvram-export-can-not-handle-wrap-text.68478/#post-228672

    my initial attempts were to NVRAM GET every node and pipe to a file, SSH it off-system, then push & restore (it was very clunky and I never finished it)

    I too am very interested, the cfg parser seems quite promising. What additional functionality (or feature requirements) did you have in mind?

  2. Fermulator

    Also; that config-parser is within the NodeJS npm world (node package manager); it is highly unlikely we would easily get npm working right on the router itself in order to build this into the UI …

  3. Log in to comment