Install, Configure & Use of Rclone
In this guide, we will be going over the installation of Rclone. We'll also cover the basic usages such as setting up a remote and how to copy files between your Ultra service and a remote server.
Installation on your Ultra.cc Service
To begin, make sure you know how to SSH into your service. All Rclone commands are performed via SSH.
- Connect to your Ultra service via SSH.
- To install Rclone, run the command below; this command will automatically install Rclone to your slot for you.
Rclone stable
curl https://scripts.ultra.cc/main-v2/MergerFS-Rclone/Installer%20Scripts/rclone-install-stable.sh | bashRclone beta
curl https://scripts.ultra.cc/main-v2/MergerFS-Rclone/Installer%20Scripts/rclone-install-beta.sh | bashInstallation on your Local PC
Windows
- Download the latest Rclone version.
- Extract the compressed zip file to any location of your liking using software like 7zip or WinRAR.
- Move
rclone.exeto the following folderC:\Windows\System32.
MacOS
- Open a terminal window.
- Install
brewwith the command given below:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"- Install
sudoandmacfusewith brew using the commands below:
brew install macfuse
brew install sudo- Switch to root and finally install Rclone using the commands below:
sudo su
curl https://rclone.org/install.sh | sudo bashLinux
- Open a terminal window.
- Run the command given below:
curl https://rclone.org/install.sh | sudo bashConfiguration
OAuth (Google Drive)
- Navigate to Google Developer Console and login to your Google account.
- Click Create on the right-hand side of the screen.
- On the screen that pops up, enter a Project name and then click Create.
- We recommend against using Rclone in the project name; even just the default will do.
- Click Enable APIs and Services, search for Drive and select Google Drive.
- Click Enable on the window that pops up.
- Click Create Credentials on the top right side of the screen.
- Select User data and click Next.
- Fill out App name and email addresses as you see fit. Then Save and Continue.
- Click Save and Continue again. No need to set Scopes.
- Set Application type to Desktop app and then click on Create.
- Then you will be given the option to download your credentials and also a link to your credentials page.
- You can download them to save them locally, but they will always be visible in your Google account's cloud console.
- Click on the credentials page link to go to your Credentials page. Here you will find your credentials under OAuth2.0 Client IDs.
Rclone
Now we need to configure a remote to use with Rclone. For this guide, we will be configuring Google Drive. This is the most common remote people tend to use as it offers ample storage capacities for a reasonable price. Should you wish to use a different cloud host, feel free to modify the steps, you take.
- Run the command
rclone config
kbguides@lw914:~$ rclone config
2019/06/15 18:16:33 NOTICE: Config file "/home/kbguides/.config/rclone/rclone.conf" not found - using defaults
No remotes found - make a new one
n) New remote
s) Set configuration password
q) Quit config
n/s/q>- Press
nand then Enter. Type the name you wish to use for your remote, and then press Enter once more. Here, we'll usegdriveas our remote name. - Scroll through the list of supported remotes and pick the one you wish. For this example, we will be using Google Drive, so we will search through the listed remote providers and select the number corresponding with Google Drive.
Type of storage to configure.
Enter a string value—Press Enter for the default ("").
Choose a number from below, or type in your own value
...
14 / Google Cloud Storage (this is not Google Drive)
\\ "google cloud storage"
15 / Google Drive
\\ "drive"
16 / Hubic
\\ "hubic"
...- You will be prompted to enter your
client_idthat we created earlier in the guide. Please head over to your credentials page in your Google developer console. - Once you have followed the steps in the guide, copy your client ID and paste it into the terminal, next press Enter. Now copy your client secret, paste it in, and again press Enter.
Google Application Client Id
Setting your own is recommended.
See <https://rclone.org/drive/#making-your-own-client-id> for how to create your own.
If you leave this blank, it will use an internal key which is low performance.
Enter a string value. Press Enter for the default ("").
client_id> example12345
Enter a string value. Press Enter for the default ("").
client_secret> example12345- Choose the scope you wish to give to Rclone. Full Access is safe and is likely the most useful one to you, so in this case we will type
1then press Enter.
- Unless you know what you are doing, leave the
root folderblank and press Enter. Leave Service Account Credentials JSON file path blank also, again press Enter. Then typento choose to not edit advanced config and press Enter.
- Type
nto choose to not use auto-config and press Enter. - Next, you will be provided with a Rclone command that you must execute on your local PC.
- Copy the
rclone authorize "drive" "your_token"command from your Ultra terminal and paste it on your local PC's terminal. This will open your browser automatically. - Refer to the earlier section of installing Rclone on your local PC if required.
- Choose the Google Drive account you wish to use and click Allow, giving Rclone permission to use it.
- Go back to the terminal of your local PC. Rclone will have generated a code, which you must copy.
- Paste the code in your Ultra terminal and press Enter.
- Finally, type
nto choose to not configure as a team drive and press Enter.
- You will be shown a confirmation screen. If all is OK, type
yand then press Enter to save your configuration. - If you notice any issues, you can edit them from here by typing
e, or delete them usingd. Finally, pressqand then Enter to quit the Rclone config wizard.
--------------------
[gdrive]
type = drive
client_id = 78311[REDACTED].apps.googleusercontent.com
client_secret = O34[REDACTED]
scope = drive
token = {"access_token":[REDACTED]}
team_drive =
--------------------
y) Yes this is OK (default)
e) Edit this remote
d) Delete this remote
y/e/d>Usage
As Rclone is a CLI based utility, it is managed from a terminal, and via SSH on your Ultra service. Please ensure you are familiar with the Linux terminal and using SSH prior to using Rclone.
General Commands
These commands are helpful to remember. They allow you to interact with Rclone and move files around between your local and remote storage, or even between two remote destinations. For detailed usage instructions, check out the official documentation for Rclone.
If you require further assistance, you can open a support ticket here!
Feedback and suggestions regarding this article are welcome on our Discord server
- Install, Configure & Use of Rclone
- Installation on your Ultra.cc Service
- Rclone stable
- Rclone beta
- Installation on your Local PC
- Windows
- MacOS
- Linux
- Configuration
- OAuth (Google Drive)
- Rclone
- Usage
- General Commands