Transferring Files with Cloud Services using Rclone

In this knowledge base article, you will learn how to transfer files to and from the cloud using the rclone tool. This article uses Dropbox in it's examples, but can be used with many other cloud providers as well. More documentation is available at https://rclone.org/  These instructions are for Windows, but work with Mac with minor command alteration.

Download Rclone

Rclone is a free command-line based utility that can be downloaded from https://rclone.org/downloads/

Once the file is downloaded, unzip it to a convenient location such as your desktop.

Get your own Dropbox App ID

When you use rclone with Dropbox in its default configuration you are using rclone's App ID. This is shared between all the rclone users.

Here is how to create your own Dropbox App ID for rclone:

  1.     Log into the Dropbox App console with your Dropbox Account
  2.     Choose an API => This should be Dropbox API
  3.     Choose the type of access you want to use => Full Dropbox or App Folder
  4.     Name your App. The app name is global, so you can't use rclone for example. This choice is not important, it just needs to be unique.
  5.     Click the button Create App
  6.     Fill Redirect URIs as http://localhost:53682/ and cick Add
  7.     Find the App key and App secret. Use these values in rclone config to add a new remote or edit an existing remote.

Configure Rclone

  1. In your terminal or Powershell or cmd, navigate to the folder where you downloaded rclone.
    1. e.g. cd c:\temp\rclone
  2. Type: rclone.exe config or in Powershell .\rclone.exe config
  3. Press 'n' to create a new remote connection.
  4. Enter a name for the connection like: dropbox
  5. Find Dropbox in the list and enter the number.
  6. For the client_id> enter the App key from the Dropbox website.
  7. For the client_secret> enter the App secret from the Dropbox website.
  8. Press 'Enter' twice, then it will open a browser window asking you to authorize this app. (Yes)
  9. Press 'Enter'
  10. Press 'Q'

Transferring files to Dropbox

  1. In your terminal or Powershell or cmd, navigate to the folder where you downloaded rclone.
    1. If you just completed the last step, you're already there.
    2. e.g. cd c:\temp\rclone
  2. Type: rclone.exe copy c:\temp\files\to\upload dropbox:\folder -P --create-empty-src-dirs
    1. In Powershell .\rclone.execopy c:\temp\files\to\upload dropbox:\folder -P --create-empty-src-dirs

Limitations and Additional Documentation

There are some additional limitations with Dropbox for instance, restricted filename characters. For more information, please see Rclone's documentation for Dropbox: https://rclone.org/dropbox/

Details

Article ID: 111417
Created
Wed 7/8/20 9:49 AM
Modified
Mon 8/24/20 3:30 PM