Transfer files via ssh from your server to Dropbox

Server to Dropbox – Sometime it is tedious to download files from your server and then uploading to your dropbox via sync since it takes long time. In this post I will show you how you can quickly transfer files to Dropbox directly from your server via command line.

I am going to use Dropbox Uploader from this Github repo. According to their github page “Dropbox Uploader is a BASH script which can be used to upload, download, list or delete files from Dropbox, an online file sharing, synchronization and backup service.”

Here we go!

Remote Server to Dropbox Transfer

First of all download the script:

You’ll have a file in dropbox folder

Next you run the following command to execute the script. For example I am uploading a uploads.zip folder to my /Backups/ folder in my Dropbox account.

It would show:

It is worth noting that since you haven’t mentioned your dropbox details anywhere yet so it might be confusing for the user that how Dropbox would connect your account. Here is the catch. This script uses a Dropbox app which need to create in your Dropbox account. So if you ran the command above to upload something the following instructions pop up in your shell.

Once you follow these instructions you have a Dropbox app create and a new access token ready.

Visit https://www.dropbox.com/developers/apps and create an app if you haven’t have on already. I would suggest you to create this app beforehand and then try the upload or any other command.

Once you crean an access token and it is entered and confirmed with “y” run the upload command again and it should upload your GB sized files in a few seconds!!

Let me know via your comments how do you feel about sharing this post about Remote Server to Dropbox file transfer via ssh.

Leave a Reply