1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

restore on shibby 116

Discussion in 'Tomato Firmware' started by shadowro, Mar 6, 2014.

  1. shadowro

    shadowro Serious Server Member

    update it to shibby 116 from 115
    did an nvram clear

    when to import with:
    nvram import /tmp/mnt/OPTWARE/backup/routerconfig.txt

    says:
    ---
    0 skipped, 0 same, 0 set

    did also a chmod +x /tmp/mnt/OPTWARE/backup/routerconfig.txt

    did also a nvram commit, restarted, settings are not there

    usb is properly mounted

    any idea? sorry for the n00b question

    thank you.
     
  2. eibgrad

    eibgrad Addicted to LI Member

    Did you create the export file correctly using --set?

    nvram export --set > /tmp/mnt/OPTWARE/backup/routerconfig.txt
     
  3. jerrm

    jerrm Network Guru Member

    If he did, then that's the problem, "nvram import" is not used for a --set created file. Simple execute the file as a script, ie:

    sh /tmp/mnt/OPTWARE/backup/routerconfig.txt

    But be careful. If the contents were improperly limited with grep, there may be fragments from any of the mult-line entries that will be executed.

    --set is convenient for its cut and paste simplicity, but I find --quote or --tab easier to work with.
     
    Last edited: Mar 6, 2014
  4. eibgrad

    eibgrad Addicted to LI Member

  5. shadowro

    shadowro Serious Server Member

    yes, did it with
    nvram export --set > /tmp/mnt/OPTWARE/backup/routerconfig.txt
     
  6. shadowro

    shadowro Serious Server Member

    will try this : sh /tmp/mnt/OPTWARE/backup/routerconfig.txt

    what's the best technique to backup/restore config on the router?

    much appreciated.
     
  7. eibgrad

    eibgrad Addicted to LI Member

    As far as I can tell, using the GUI (which works for me) is the same as:

    nvram backup <filename>

    … and which is restorable using:

    nvram restore <filename>

    I think it's just a binary representation of nvram, as opposed to a text/readable version using nvram --dump or --set. Perhaps in the end it doesn't really matter. Seems obvious that using the text/readable formats means you can be selective in reapplying parameters, or simply use it as a reference for rebuilding by hand.
     
  8. shadowro

    shadowro Serious Server Member

    one more question:
    because I've added some iptables rules
    will they get back to defaults if I'll do a 30-30-30 reset?
    or I should try to delete them manually

    thank you.
     
  9. JoeDirte

    JoeDirte Serious Server Member

    From one of the sticky threads:
    http://www.linksysinfo.org/index.php?threads/common-tomato-topics-help-information.31234/

    Easy backup and restore to any Tomato router
    http://www.linksysinfo.org/forums/showpost.php?p=362345&postcount=221
    http://www.linksysinfo.org/forums/showpost.php?p=375128&postcount=538

    I also use the NVRAMDiff tool from this post:
    http://www.linksysinfo.org/index.php?threads/tomato-raf-1-28-9013.63093/page-18#post-234478

    Basically, you do an NVRAM export of the clean config. Do the same with your custom config. Run the NVRAMDiff tool to get a config with just your changes from the clean config. Then you can edit as needed and just import the settings you need after an upgrade. Finish with an NVRAM commit.
     
  10. eibgrad

    eibgrad Addicted to LI Member

    A 30-30-30 reset will erase them.
     
  11. shadowro

    shadowro Serious Server Member

    thank you gents
     
  12. kthaddock

    kthaddock Network Guru Member

    Do 30-30-30 is NOT recomended, only recomended reset that is:"Erase all data in NVRAM memory (thorough)" from drop list in Admin configuration.
     

Share This Page