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 [[UnionFS Cleaner]] and [[Backup|Backup-and-Restore]] to upload media and backup Cloudbox, respectively.
-
Run the command:
rclone config -
Rclone Config Menu:n(add a new remote).
-
Remote Name:googleNote: This is the same is specified under Rclone Renote under [[settings.yml|First Time Install: Configuring Settings]] (default is
googlein lowercase). -
Type of storage to configure:driveNote: 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 IDfrom Step 5. -
Client Secret:Client Secretfrom 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| Basics: Prerequisites#4-google-drive-account]]).
-
Copy the
verification code.
-
-
Enter verification code>Paste the
verification codefrom above. -
Configure this as a team drive?n(no)
-
Confirm Remote is OK:
y(Yes this is OK)
-
Rclone Config Menu:q(Quit config)
-
Edit your rclone configuration file (i.e
rclone.conf). -
Rename the Google Drive remote to what you have specified in [[settings.yml|First Time Install: Configuring Settings]] (default is
googlein lowercase). -
Copy this file into
~/.config/rclone/.