Backup your files to dropbox using BASH

Download the dropbox-uploader script by Andrea Fabrizi from github as root

make it executable and run it

when executed for the first time you will be prompted with some some instructions to be able to upload/download to your dropbox account.
In short, you need to create a developer account and create an app that this little script will talk to.
So, head over to :

https://www2.dropbox.com/developers/apps

and click on “Create an App”, fill in the form with the following data:

App name: MyUploader<number>
Description: What do you want…
Access level: App folder or Full Dropbox

Now, click on the “Create” button.

When your new App is successfully created, please enter the App Key, App Secret and the Access level into the script:

The script will then show a confirmation question, if all information is correct, enter “y”
The script will now display:

while requesting access and if all is well it will turn into:

A URL is now displayed that you need to visit to confirm access for the Dropbox Uploader to your dropbox account.
it will look something like this:

Press enter when done…
If you take to long time to visit the URL, you will need to CTRL+C and start over again. If everything went ok, you will see this:

You can now upload/download files to your dropbox account with cli.

5 comments for “Backup your files to dropbox using BASH

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.