Body
Overview
Learn how to transfer files to and from the cloud using the rclone tool. This article uses Dropbox in its examples, but can be used with many other cloud providers as well. More documentation is available at Rclone.
These instructions are for Windows, but work with Mac with minor command alteration.
Download Rclone
Rclone is a free, downloadable, command-line based utility.
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:
- Log into the Dropbox App console with your Dropbox Account
- Choose an API: This should be Dropbox API
- Choose the type of access you want to use: Full Dropbox or App Folder
- 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.
- Click the button Create App
- Fill Redirect URIs as http://localhost:53682/ and click Add
- 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
- In your terminal or Powershell or cmd, navigate to the folder where you downloaded Rclone.
- e.g.,
cd c:\temp\rclone
- Type:
rclone.exe config
or in PowerShell .\rclone.exe config
- Press n to create a new remote connection.
- Enter a name for the connection like: dropbox
- Find Dropbox in the list and enter the number.
- For the <client_id>, enter the App key from the Dropbox website.
- For the <client_secret>, enter the App secret from the Dropbox website.
- Press Enter twice, then it will open a browser window asking you to authorize this app. (Yes)
- Press Enter
- Press Q
Transferring files to Dropbox
- In your terminal or Powershell or cmd, navigate to the folder where you downloaded rclone.
- If you just completed the last step, you're already there.
- e.g.,
cd c:\temp\rclone
- Type:
rclone.exe copy c:\temp\files\to\upload dropbox:\folder -P --create-empty-src-dirs
- 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