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

    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 Network Guru 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 Network Guru 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 Network Guru 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 Networkin' Nut Member

    From one of the sticky threads:

    Easy backup and restore to any Tomato router

    I also use the NVRAMDiff tool from this post:

    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 Network Guru 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.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice