To use Dropbox Uploader, download the script and make it executable.
$ wget https://raw.github.com/andreafabrizi/Dropbox-Uploader/master/dropbox_uploader.sh $ chmod +x dropbox_uploader.sh
To configure Dropbox Uploader
Follow the instruction in terminal, go to the link https://www.dropbox.com/developers/apps.
Click create app. Choose Dropbox API, Full Dropbox, name your app for instance Myuploader. Then click create button. This page will appear after you have clicked create button. Click Generate button to generate access token. Copy that onto terminal and press enter.
Or you can follow step by step as I did in the images below to generate access token.
To list all contents in the top-level directory:
$ ./dropbox_uploader.sh list
To upload a local file to a remote Dropbox folder (where ~/IDL_TOOL/data is the path to the directory on my local machine that I want to upload, SSP2016/data is the path to the folder on my dropbox cloud I want to store my files):
$ ./dropbox_uploader.sh upload ~/IDL_TOOL/data SSP2016/data
To download a remote file from Dropbox to a local file:
$ ./dropbox_uploader.sh download SSP2016/data ~/IDL_TOOL/data
To download an entire remote folder (for instance in this case is manuals) from Dropbox to a local folder (we save it under the same name: manuals):
$ ./dropbox_uploader.sh download Documents/manuals ./manuals
To create a new remote folder on Dropbox (whitepapers is the new folder we want to create under the main folder: Documents):
$ ./dropbox_uploader.sh mkdir Documents/whitepapers
To delete an entire remote folder (including all its contents) on Dropbox:
$ ./dropbox_uploader.sh delete Documents/manuals
Access dropbox command line