The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,860 other subscribers

Asus RT N66U: steps to get “Tomato Backup Settings & Log to USB Drive Script – TomatoUSB” working on an Asus RT N66U @AustinStAubin

Posted by jpluimers on 2012/07/27

Below are some steps to get the  Tomato Backup Settings & Log to USB Drive Script – TomatoUSB by Austin Saint Aubin working on an Asus RT N66U router.

I presume you are using a Windows system (hence the FAT/FAT32 formatting of the USB stick) for doing the edits and copying of files to an USB stick.

  1. Read the documentation at Backup Settings, Logs, & More to USB Drive Script and  Tomato Full Backup Script v9.x – Google Docs.
  2. Download the script
  3. Apply the change mentioned by user Zachman (make sure that when you save the script you keep the Unix line endings, otherwise it won’t work):

    In your latest script which is Awesome:
    Tomato Backup Script – 2011/10/01 – v1.0.2 – Written By: Austin Saint Aubin
    there is a typo in the following line:
    backThisUp "Web Domains" cp file "/proc/webmon_recent_searches" "$BackupsLocation/WebUsage/Domains" WebDomains txt $NumOfBackupsToKeep
    the path should be /proc/webmon_recent_domains

  4. Copy the script to the root of a FAT or FAT32 formatted USB stick
  5. Note the volume label of the USB stick (mine is TOMATOUSB1G)
  6. Insert the stick in your router (becuase of the volume label, it is mounted at /tmp/mnt/TOMATOUSB1G)
  7. Login to your router on the web interface (default at http://192.168.1.1)
  8. Go to the “Execute System Commands” (in Tools -> System)
  9. Copy/paste these two lines (replace TOMATOUSB1G with the volume label of your USB stick)
    nvram set usb_disk_main=/tmp/mnt/TOMATOUSB1G
    nvram set usb_tomato=/tmp/mnt/TOMATOUSB1G/Tomato
    mkdir $(nvram get usb_tomato)
    cp $(nvram get usb_disk_main)/TomatoFullBackup.sh $(nvram get usb_tomato)
  10. Press the Execute button
  11. From the documentation at Tomato Full Backup Script v9.x – Google Docs, follow the steps starting at Step 3, but first:
    – replace USB_DISK in the steps with the volume label of your USB stick (mine is TOMATOUSB1G)
    – replace backupToUSB.sh with TomatoFullBackup.sh
    – replace $(nvram get usb_disk_main)/Tomato with $(nvram get usb_tomato)

I’m not totally happy with this being in the USB auto mount setting:

# Set Bandwith Save History Location
nvram set rstats_path=$(nvram get usb_tomato)/BandwidthUsage/

As when removing the USB stick, rstats_path will point to a non-existing path.

I am happy with files like this on external USB storage, as they allow you to restore a complete configuration, and the restore should work on a different router (of the same model and hardware revision):

/tmp/mnt/TOMATOUSB1G/Tomato/Backups/1.28.0000\ MIPSR2-095\ K26\ USB\ AIO/NVRam/Set/NVRam_\(1.28.0000_MIPSR2-095_K26_USB_AIO\)_2012-07-15_120214_\(Set\).txt

Now just make sure those files get copied off-line as well (:

Restoring to a router of same model and hardware revision allows you to keep spare equipment at hand for fall back or testing problems.

I’ve had issues with these routers:

  • a Linksys WRT610N version 1 died on me (I didn’t bother buying a new one as shortly after buying the version 1, it got phased out and you could only buy version 2)
  • a Fritz!Box 7340 died on me (which is owned by the DSL provider xs4all and it took them more than a week to get me a replacement which turned out to be a different and incompatible model)
  • a SpeedTouch 580i (which I owned and for which I had a replacement) had funny issues (which later appeared to be issues with xs4all having me moved to a different DSLAM without telling me).

–jeroen

via:

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.