-
-
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 below).
-
Run the following command:
rclone config
-
Type
n
for "New remote" and press Enter. -
For "name", type in
google
and press Enter. -
For "Type of storage", type in
drive
, or the corresponding number, and press Enter. -
Create a Google Drive API Client ID and Client Secret for Rclone.
-
For "Google Application Client ID", paste the Client ID from Step #5, and press Enter.
-
For "Google Application Client Secret", paste the Client Secret from Step #5, and press Enter.
-
For the "Scope that rclone should use when requesting access from drive", type in
drive
, or the corresponding number (i.e.1
), to select "Full access all files, excluding Application Data Folder", and press Enter. -
For "ID of the root folder", leave blank and press Enter.
-
For "Service Account Credentials JSON file path", leave blank and press Enter.
-
For "Edit advanced config", type
n
and press Enter. -
For "Use auto config?", type
n
for "...remote or headless machine" and press Enter. -
In the next section, copy the link shown, and open it in your host PC's browser.
-
If asked to login, use the Google Drive account you want to store your data in (see Prerequisites).
-
Give access by clicking "Allow".
-
You will now be given a "verification code". Copy it.
-
Paste the "verification code" at the command prompt and press Enter.
-
For "Configure this as a team drive?", type
n
and press Enter. -
To confirm that the remote details look OK, type
y
and press Enter. -
To exit, type
q
and press enter.
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.