-
-
Notifications
You must be signed in to change notification settings - Fork 309
Install: Rclone
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 the remote to google
(see here).
-
Run the command:
rclone config
-
Rclone Config Menu:
n
(add a new remote).
-
Remote Name:
google
-
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)
If Rclone is already setup with Google Drive, you will need to rename the Google Drive remote to google
(if it isn't already):
-
Find and edit your Rclone configuration file.
nano $(rclone config file | tail -n 1)
-
Rename the Google Drive drive remote (name between the brackets) to
google
. -
It will now look like this:
[google] type = drive client_id = 1234567890123-mjffsmxvendscftuvnyngkhegapovgnv.apps.googleusercontent.com client_secret = klflzftkrwuwuedesxzewsfz token = {"access_token":"ya30.gelftvrymioiilvdtfegfvhfgallrhocewjckdnnvmxdjpjzbdhkmgulvqhgbafkdtpottzthhnyzysxwlpf-38ikRIxZvimyoxyKdse$
-
Save the file and exit: Ctrl + X Y Enter.
-
Copy the config file to
~/.config/rclone/rclone.conf
(if it isn't there already):cp -n $(rclone config file | tail -n 1) ~/.config/rclone/rclone.conf
-
Give it the proper ownership and permissions. Replace
user
andgroup
to match yours' (see here):sudo chown user:group ~/.config/rclone/rclone.conf sudo chmod 755 ~/.config/rclone/rclone.conf
- Overview
- Presumptions
- Server
- Domain Name
- Cloudflare
- Cloud Storage
- Plex / Emby - Account
- Usenet vs. BitTorrent
Cloudbox
- Overview
- Dependencies (Choose only one of these)
- Settings
- Preinstall (Choose only one of these)
- SSH
- Ansible Vault
- Rclone
- Cloudbox (Choose only one of these)
- Application Setup
- Next Steps
Feederbox (do this first)
- Overview
- Dependencies
- Settings
- Preinstall
- SSH
- Ansible Vault
- Rclone
- Feederbox (Choose only one of these)
- Application Setup
- Next Steps
Mediabox
- Overview
- Dependencies
- Settings
- Preinstall
- SSH
- Ansible Vault
- Rclone
- Mediabox (Choose only one of these)
- Application Setup
- Next Steps
- Cloudplow (Media Uploader)
- cb utility script (Develop branch only}
- Updating Cloudbox (Choose only one of these)
- Updating Cloudbox Apps
- Removing Cloudbox Apps
- Resetting Cloudbox Apps
- Migrating Cloudbox
- Settings Updater
- Ansible Vault Primer
- Plex Access Token
- Plex Autoscan Extras
- Pushover
- Google Drive API Client ID and Client Secret
- Useful Docker Commands
- Add Your Own Docker Container into Cloudbox
- Revoking SSL Certificates
- Feeder Mount
- Adding a Subdomain
- HTTP Auth Support
- Emby
- Nextcloud
- Resilio Sync
- Plex DupeFinder
- Heimdall
- NZBHydra v1
- Plex Requests
- Sickbeard MP4 Automator
- SABnzbd
- Traktarr
See Community Wiki.