Tomato backup to Dropbox?

Discussion in 'Tomato Firmware' started by Appé, Apr 24, 2011.

  1. Appé

    Appé Networkin' Nut Member


    Im currently using Tomato Firmware v1.28.7467 MIPSR2-Toastman K26 Std.

    I would like to save my Bandwidth Monitoring stats to a Dropbox, wouldn't that be a cool feature? Could this be possible to do?
  2. molnart

    molnart LI Guru Member

  3. molnart

    molnart LI Guru Member

  4. bkmo

    bkmo LI Guru Member

    I have a bash script that will upload to dropbox. It may work just fine under optware, or possibly the busybox on the router has grep and curl for it to function. I think this may be able to be adapted to upload to dropbox from the router. I don't think you can save stats in realtime though. It would have to be a daily, hourly, etc. upload.

    Attached Files:

  5. molnart

    molnart LI Guru Member

    many thanks for the script bkmo :bow: :bow: :bow:

    it took some time to get it work (i had to figure out that its written in bash and my router runs sh). however when trying to upload a file, it always fails (the login and the "Loading home" sections pass, but then the upload fails).

    maybe i did something wrong during the "conversion" to sh? i am a total noob when it comes to linux, so actually what i did was to change the first line of the script to #!/bin/sh and changing all "function function_name" to "function_name()" as it seems that functions are not recognised by sh

    EDIT: i have discovered that i have also bash installed as optware, so changed the first line to #!/opt/bin/bash (where my bash is located) and left everything else from your script untouched, but the results are still the same... i guess then it was not the "conversion" what went wrong...

    EDIT2: just tried the script in Ubuntu. It works out of the box, so there is definitely something wrong.... specific in the router
  6. molnart

    molnart LI Guru Member

  7. ryzhov_al

    ryzhov_al Addicted to LI Member

  8. occamsrazor

    occamsrazor Network Guru Member

    Resurrecting this thread :) Is there any easy way to backup stats and ideally the config backup to Dropbox? Dropbox integration in the firmware itself would be so great... Thanks.
  9. ryzhov_al

    ryzhov_al Addicted to LI Member

    • No settings — no internet connection,
    • no connection — no access to Dropbox (or whatever) backup,
    • no access to backup — no setting restoration.
    Is it a good idea?
  10. occamsrazor

    occamsrazor Network Guru Member

    I'm obviously not suggesting to read the primary settings to Dropbox, but to have the config backup save there. While I accept your point about lack of access when the internet is down, I can think of a few reasons why it would be good:

    1. Dropbox has built-in versioning so if you ran the config-backup every day you'd have a months worth of backups stored and could easily go back to a working config from any date if you ever mess things up.

    2. Dropbox syncs with my other computers so I'll always have an offline copy on those machines. For me this pretty much completely gets around the "internet down" issue.
  11. ryzhov_al

    ryzhov_al Addicted to LI Member

    Mr. Squonk from OpenWRT forum got a similar idea, but with WebDAV.
  12. jerrm

    jerrm Network Guru Member

    You can automate saving attachments from gmail to google drive. There are third party sites that do the same for dropbox. The nice thing about the gmail solution is that it is all google, no third parties. Being email based means you can get by without Entware/Optware if needed on most build versions.

    See .
  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