Install, Configure & Use of Rclone

super-embed:
<p class="callout warning">[Ultra.cc](<http://ultra.cc/>) support is unable to provide support for Rclone, this is due to the large volume of variables and different configurations possible with Rclone. The guides found in our documentation will provide the necessary information needed to get started with Rclone. Any further questions can be directed to the <a href="<https://forum.rclone.org/>">Rclone forum</a> or a quick Google search, or you may also be able to find community support for Rclone through our community <a href="<https://discord.ultra.cc>">Discord server</a>.</p>
super-embed:
<p class="callout danger">
Please make yourself aware of the [Ultra.cc](<http://ultra.cc/>) <a href="<https://docs.ultra.cc/policies/terms-of-service#block-2921fb0312cb80cca1bad876bb95b2bf>">Fair Usage Policy</a>. It is very important <b>NOT</b> to mount your cloud storage to any of the premade folders. Do <b>NOT</b> download directly to a Rclone mount from a torrent or nzbget client, as it will create massive instability for both you and everyone else on the server. Always follow the documentation and create a new folder for mounting. It is <em>your</em> responsibility to ensure your usage is within acceptable limits.
</p>
super-embed:
<p class="callout danger">
Please do not mount to any of the default directories such as:
<br><code>downloads</code>
<br><code>files</code>
<br><code>media</code>
<br><code>bin</code>
<br><code>.apps</code>
<br><code>.config</code>
<br><code>www</code>
<br><code>/home/username</code>
<br> or any pre-created directory found on your [Ultra.cc](<http://ultra.cc/>) Slot
</p>

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.

Rclone stable

curl <https://scripts.ultra.cc/main-v2/MergerFS-Rclone/Installer%20Scripts/rclone-install-stable.sh> | bash

Rclone beta

curl <https://scripts.ultra.cc/main-v2/MergerFS-Rclone/Installer%20Scripts/rclone-install-beta.sh> | bash
rclone version
rclone selfupdate

Installation on your Local PC

super-embed:
<p class="callout info">
  During this process, an error saying
  <code>Access blocked: This app has not completed the Google verification
    process</code>
  might appear. In this case you need to ensure your account has proper access
  to the app, such as being a verified developer, tester or audience. The latter
  in some cases being a requirement.<br />
  More information can be found here
  <a
    href="<https://developers.google.com/identity/protocols/oauth2/production-readiness/brand-verification?hl=en#projects-used-in-dev-test-stage>"
    >here</a
  >.
</p>

Windows

MacOS

/bin/bash -c "$(curl -fsSL <https://raw.githubusercontent.com/Homebrew/install/master/install.sh>)"
brew install macfuse
brew install sudo
sudo su
curl <https://rclone.org/install.sh> | sudo bash

Linux

curl <https://rclone.org/install.sh> | sudo bash

Configuration

OAuth (Google Drive)

Screenshot_2.png

Screenshot_3.png

Screenshot_4.png

Screenshot_5.png

Screenshot_6.png

Screenshot_7.png

Screenshot_8.png

Screenshot_9.png

Screenshot_10.png

Screenshot_11.png

Screenshot_12.png

Screenshot_13.png

Screenshot_14.png

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.

kbguides@lw914:~$ rclone config
No remotes found, make a new one?
n) New remote
s) Set configuration password
q) Quit config
n/s/q> 
kbguides@lw914:~$ rclone config
No remotes found, make a new one?
n) New remote
s) Set configuration password
q) Quit config
n/s/q> n

Enter name for new remote.
name> gdrive
Option Storage.
Type of storage to configure.
Choose a number from below, or type in your own value.
...
23 / Google Cloud Storage (this is not Google Drive)
   \\ (google cloud storage)
24 / Google Drive
   \\ (drive)
25 / Google Photos
   \\ (google photos)
26 / HTTP
   \\ (http)
...
Storage> 24

Option client_id.
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 value. Press Enter to leave empty.
client_id>
Storage> 24

Option client_id.
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 value. Press Enter to leave empty.
client_id> 702549500XXXXXXXXXfi2pm42jrr1hXXXXfb2s6.apps.googleusercontent.com

Option client_secret.
OAuth Client Secret.
Leave blank normally.
Enter a value. Press Enter to leave empty.
client_secret>
Storage> 24

Option client_id.
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 value. Press Enter to leave empty.
client_id> 70254XXXXXXXXXXXXXXXXXXXXXXXmjfb2s6.apps.googleusercontent.com

Option client_secret.
OAuth Client Secret.
Leave blank normally.
Enter a value. Press Enter to leave empty.
client_secret> GOXXXXXXXXXXXXXXXXX6hCx9KNmWymxV
Option scope.
Comma separated list of scopes that rclone should use when requesting access from drive.
Choose a number from below, or type in your own value.
Press Enter to leave empty.
 1 / Full access all files, excluding Application Data Folder.
   \\ (drive)
 2 / Read-only access to file metadata and file contents.
   \\ (drive.readonly)
   / Access to files created by rclone only.
 3 | These are visible in the drive website.
   | File authorization is revoked when the user deauthorizes the app.
   \\ (drive.file)
   / Allows read and write access to the Application Data folder.
 4 | This is not visible in the drive website.
   \\ (drive.appfolder)
   / Allows read-only access to file metadata but
 5 | does not allow any access to read or download file content.
   \\ (drive.metadata.readonly)
scope> 1
Option service_account_file.
Service Account Credentials JSON file path.
Leave blank normally.
Needed only if you want use SA instead of interactive login.
Leading `~` will be expanded in the file name as will environment variables such as `${RCLONE_CONFIG_DIR}`.
Enter a value. Press Enter to leave empty.
service_account_file>

Edit advanced config?
y) Yes
n) No (default)
y/n> n
Use web browser to automatically authenticate rclone with remote?
 * Say Y if the machine running rclone has a web browser you can use
 * Say N if running rclone on a (remote) machine without web browser access
If not sure try Y. If Y failed, try N.

y) Yes (default)
n) No
y/n> n
Option config_token.
For this to work, you will need rclone available on a machine that has
a web browser available.
For more help and alternate methods see: <https://rclone.org/remote_setup/>
Execute the following on the machine with the web browser (same rclone
version recommended):
        rclone authorize "drive" "eyJjbGllbnRfaWQiOiI3MDI1NDk1MXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXzYuYXBwcy5nb29nbGV1c2VyY29udGVudC5jb20iLCJjbGllbnRfc2VjcmV0IjoiR09DU1BYLUQ2OHRJdllTeElwcnhxcDZoQ3g5S05tV3lteFYiLCJzY29wZSI6ImRyaXZlIn0"
Then paste the result.
Enter a value.
config_token>

Screenshot_15.png

Screenshot_16.png