Install: Rclone - dibrz/ARMBand GitHub Wiki
Rclone (by Nick Craig-Wood) is "rsync for the cloud". Basically, it is used to transfer data to or from a variety of supported cloud storage providers (eg Google Drive).
Rclone is used by [Cloudplow]] and [Backup to upload media and backup Cloudbox, respectively.
The guide below assumes you are using Google Drive.
If you already have an Rclone remote pointed to Google Drive with the remote name google
, you may skip this page. If it is named differently, you can edit your Rclone config file and rename it.
New Rclone Setup
-
Run the command:
rclone config
-
Rclone Config Menu:
n
(add a new remote).
-
Remote Name:
google
Note: This is the same is specified under Rclone Renote under settings.yml (default is
google
in lowercase). -
Type of storage to configure:
drive
Note: You can also type in the number for Google Drive.
-
Create a Google Drive API Client ID and Client Secret for Rclone.
-
Client ID
:Client ID
from Step 5. -
Client Secret
:Client Secret
from Step 5. -
(New for Rclone 1.40)
Scope that rclone should use when requesting access from drive:
drive
(Full access all files, excluding Application Data Folder)
Note: You can also type in the number for the option.
-
(New for Rclone 1.40)
ID of the root folder
:Leave blank and press
enter
. -
(New for Rclone 1.40)
Service Account Credentials JSON file path:
Leave blank and press
enter
. -
Use auto config?
n
(you are working on a remote or headless machine)
-
If your browser doesn't open automatically go to the following link:
-
Copy the link the screen shows and paste it in your browser on the host computer.
-
If asked, login with your Google account and click
Allow
.- Note: You must use the same Google account as the Google Drive one you intend to use (see Prerequisites).
-
Copy the
verification code
.
-
-
Enter verification code>
Paste the
verification code
from above. -
Configure this as a team drive?
n
(no)
-
Confirm Remote is OK:
y
(Yes this is OK)
-
Rclone Config Menu:
q
(Quit config)
Rclone already setup with Google Drive
Make sure your remote is named google
or to whatever you specified in the settings.
-
Find your Rclone configuration file.
rclone config file
-
Edit your Rclone configuration file (e.g.
nano /path/to/rclone.conf
) -
Rename the Google Drive drive remote to
google
. -
Copy this file into
~/.config/rclone/
.