After using the perl WebService::Dropbox library for some time to manage (because of external factors) this service without having to resort to privative software, I guess someone may find it usefull, so here it is:

At Gitorious | At GitHub

Minibox

A minimalistic, libre, command line interface to the Dropbox API.

Requisites

It depends on the following perl libraries (available through CPAN).

Setup

Just create a .mb.cnf file with the following syntax on the target folder (you may request it on the Dropbox developers site)

1
2
KEY = <API key>
SECRET = <API secret>

Do a general pull, it'll output a URL to grant access to your account:

1
2
[~/dropbox]$ minibox pull
Please Access URL and press Enter: https://www.dropbox.com/1/oauth/authorize?oauth_token=****************&oauth_callback= at minibox line 60.

Access it with a browser, grant it access and press enter on the minibox terminal, an access token and secret with be displayed, copy it to the .mb.cnf file in order to not having to repeat this process:

1
2
ACCESS_TOKEN = <displayed access token>
ACCESS_SECRET = <displayed access secret>

I/O

Pull files and directories from Dropbox, if no one is specified it defaults to the Dropbox folder root.

1
minibox pull [<file/directory> [<file/directory> [...]]]

Push files and directories to Dropbox, if no one is specified it defaults to the Dropbox folder root.

1
minibox push [<file/directory> [<file/directory> [...]]]