I am trying to learn how to use script features and want to log my bandwidth so it's not temporarily stored. Is it as simple as going to Bandwidth>configure>Save history location "custom path" and the path be /tmp/mnt/MYUSBSTICK? Am I missing any other steps here?
Date: 16 Sep 2013 05:31
Number of posts: 9
RSS: New posts
And I don't need a startup script of any kind when the router boots to mount the usb stick? I just want to make sure it continues writing to the file it creates in case the power goes out. I'm on Shibby Tomato Firmware 1.28.0000 MIPSR2-112 K26 USB AIO.
Alright the power went out and now every time I go to the Bandwidth category I get the message "The rstats program is not responding or is busy. Try reloading after a few seconds."
So my original question still stands and I would like a bit more insight please.
On Shibby builds you have to tick the box that says something like "Reset data, create new file" to set up the file for the first time.
Yeah my settings are correct:Bandwidth Monitoring
Save History Location [custom path] /tmp/mnt/ROUTERUSB
Save Frequency every 6 hours
Save On Shutdown X
Create New File 
Create Backups X
First Day Of The Month 4
Excluded Interfaces [ ]
When I SSH into the router to take a look @ the file on the usb it is a .tmp file which is fine. When the power went out there was no file there to make a backup from. So that's my confusion…I did have to create a new one to get the rstats service to start again. I guess I will try the save freq on every 2 hours rather than every 6 and see if it changes anything. But if anyone else wants to chime in that would be great!
this will save it to a location on your HD. go to USB support and scroll to "run after mounting" type #Set Bandwith Save History Location
nvram set rstats_path=$(nvram get usb_disk_main)/Tomato/BandwidthUsage/