BASH Dropbox Uploader on OpenWRT




Introduction: BASH Dropbox Uploader on OpenWRT

About: A place for DIY projects

This guide is to provide detailed information on how install BASH Dropbox Uploader to a wireless router flashed with OpenWRT. Dropbox Uploader is a BASH script written by Andred Fabriz that allows you to upload, download, delete files (and more) from Dropbox.

Step 1: Prerequisite

  1. Router flashed with OpenWRT firmware. I'm using TP-Link TL-Wr103ND V2 & flashed with OpenWRT Barrier Breaker 14.07
  2. A Dropbox account

Step 2: Dropbox App Key & App Secret

The first step is to sign in to Dropbox app creation page to get a Dropbox App key & App Secret from Dropbox. The App key & App Secret will used by Dropbox API for authorizing access to resources on Dropbox.

Step 3: Create a New Dropbox Platform App

Step 4: Select a Dropbox Package

Step 5: Email Verification

Step 6: Select Type of App

Step 7: Record Down the Permission Type, App Key and App Secret

Step 8: Installing Dropbox Uploader

Next step is to SSH to router and download Dropbox Uploader from github to the router /root directory. Command line below supposed to do the job, unfortunately it is not working. It just download the Dropbox Uploader file ( with zero file size as shown in figure above.

opkg update

opkg install bash curl coreutils-statcd /rootcurl -k >

chmod 755

Step 9: Correct Procedures to Installing the Dropbox Uploader

To overcome this problem, I have to download the Dropbox Uploader ( to my computer and then transfer it to router. I'm using WinSCP to transfer Dropbox Uploader to the router as shown in figure above.

SSH to the router and enter the following command once the file has been uploaded to router.

opkg update

opkg install bash curl coreutils-stat

cd /root

chmod 755

Step 10: Authorizing Access to Resources on Dropbox

SSH to router and run the Dropbox Uploader

./ -k

Enter the App key and App secret accordingly, enter "a" (lower case) will set Folder Permission type to App Folder. Finally enter "y" to continue.

If everything is OK, it will generated a URL for you to access your Dropbox folder, otherwise it will prompted "bad App key" until you had enter a correct App key & App secret.

Leave the above windows open and then open your web browser, enter the generated URL ( as shown in figure above, this will prompted you to access folder inside your Dropbox.

Step 11: Allowed the Dropbox Uploader Access to Your Dropbox Folder

After clicking on the Allow button, you are allowed the Dropbox Uploader access to your Dropbox folder, come back to the SSH window and press the Enter key.

Your Dropbox Uploader is setup completed.

Step 12: Upload File to Dropbox

Example below will upload the test.txt file in /tmp directory to the Dropbox app root folder.

./ -k upload /tmp/test.txt /


/root/ -k upload /tmp/test.txt /

Step 13: Download File From Dropbox

Example below will download test.txt from Dropbox to router /tmp folder

/root/ -k download /test.txt /tmp/

Step 14: Delete a File From Dropbox

Example below will delete a file from Dropbox

/root/ -k delete /text.txt

Be the First to Share


    • Puzzles Speed Challenge

      Puzzles Speed Challenge
    • "Can't Touch This" Family Contest

      "Can't Touch This" Family Contest
    • CNC Contest 2020

      CNC Contest 2020

    2 Discussions


    Question 1 year ago

    after i run
    ./ -k
    for the 1st time it did not asked me app key and app secret it directly asked me app token which i entered the value and it just says configuration saved it didnot gave url at the end..??


    3 years ago

    how to upload with start stop script somthing like etc, init.d script? or on the background start uploading via telnet?