Rclone is a command line program to manage files on cloud storage. It is a feature rich alternative to cloud vendors’ web storage interfaces. Over 40 cloud storage products support rclone including S3 object stores, business & consumer file storage services, as well as standard transfer protocols.
Please check our application chart to see which GigaDrive Plans are eligible to install this application.
Rclone supports the following cloud storage providers/systems.
Mail.ru
Cloudput.io
openssh-debian
.sudo apt update -qy && sudo apt install curl p7zip-full unzip busybox -qy
sudo curl https://rclone.org/install.sh | sudo bash
sudo touch ~/.profile
sudo chown ${USER}:${USER} ~/.profile && sudo chmod +x ~/.profile
sudo echo 'export XDG_CONFIG_HOME=/storage/.appdata/rclone/xdg/config/' >> ~/.profile
source ~/.profile
rclone config file
Configuration file doesn't exist, but rclone will use this path:
/storage/.appdata/rclone/xdg/config/rclone/rclone.conf
rclone config
FUSE mount is currently disabled for the OpenSSH apps. Hence, you can’t mount your cloud storage drive using the rclone cli. To mount your cloud storage drive, install rclone browser by following the steps in the following section.
rclone
.rclone
browser.This guide is currently under developement.
Avoid connecting to the rclone app using a web browser. This may break copy-paste feature until you reboot the app. Use only VNC to connect to this app. If the copy-paste does not work, reboot the app and try again.
2020/04/25 10:33:46 NOTICE: Config file "/config/xdg/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> n
GoogleDrive
and press Enter.name> GoogleDrive
Google Drive
and type the respective option number. Please note that, option numbers can change any time.18
and press Enter to select Google Drive.Option Storage.
Type of storage to configure.
Choose a number from below, or type in your own value.
1 / 1Fichier
\ (fichier)
2 / Akamai NetStorage
\ (netstorage)
3 / Alias for an existing remote
\ (alias)
4 / Amazon Drive
\ (amazon cloud drive)
5 / Amazon S3 Compliant Storage Providers including AWS, Alibaba, ArvanCloud, Ceph, ChinaMobile, Cloudflare, DigitalOcean, Dreamhost, GCS, HuaweiOBS, IBMCOS, IDrive, IONOS, LyveCloud, Leviia, Liara, Linode, Minio, Netease, Petabox, RackCorp, Rclone, Scaleway, SeaweedFS, StackPath, Storj, Synology, TencentCOS, Wasabi, Qiniu and others
\ (s3)
6 / Backblaze B2
\ (b2)
7 / Better checksums for other remotes
\ (hasher)
8 / Box
\ (box)
9 / Cache a remote
\ (cache)
10 / Citrix Sharefile
\ (sharefile)
11 / Combine several remotes into one
\ (combine)
12 / Compress a remote
\ (compress)
13 / Dropbox
\ (dropbox)
14 / Encrypt/Decrypt a remote
\ (crypt)
15 / Enterprise File Fabric
\ (filefabric)
16 / FTP
\ (ftp)
17 / Google Cloud Storage (this is not Google Drive)
\ (google cloud storage)
18 / Google Drive
\ (drive)
19 / Google Photos
\ (google photos)
20 / HTTP
\ (http)
21 / Hadoop distributed file system
\ (hdfs)
22 / HiDrive
\ (hidrive)
23 / ImageKit.io
\ (imagekit)
24 / In memory object storage system.
\ (memory)
25 / Internet Archive
\ (internetarchive)
26 / Jottacloud
\ (jottacloud)
27 / Koofr, Digi Storage and other Koofr-compatible storage providers
\ (koofr)
28 / Linkbox
\ (linkbox)
29 / Local Disk
\ (local)
30 / Mail.ru Cloud
\ (mailru)
31 / Mega
\ (mega)
32 / Microsoft Azure Blob Storage
\ (azureblob)
33 / Microsoft Azure Files
\ (azurefiles)
34 / Microsoft OneDrive
\ (onedrive)
35 / OpenDrive
\ (opendrive)
36 / OpenStack Swift (Rackspace Cloud Files, Blomp Cloud Storage, Memset Memstore, OVH)
\ (swift)
37 / Oracle Cloud Infrastructure Object Storage
\ (oracleobjectstorage)
38 / Pcloud
\ (pcloud)
39 / PikPak
\ (pikpak)
40 / Proton Drive
\ (protondrive)
41 / Put.io
\ (putio)
42 / QingCloud Object Storage
\ (qingstor)
43 / Quatrix by Maytech
\ (quatrix)
44 / SMB / CIFS
\ (smb)
45 / SSH/SFTP
\ (sftp)
46 / Sia Decentralized Cloud
\ (sia)
47 / Storj Decentralized Cloud Storage
\ (storj)
48 / Sugarsync
\ (sugarsync)
49 / Transparently chunk/split large files
\ (chunker)
50 / Union merges the contents of several upstream fs
\ (union)
51 / Uptobox
\ (uptobox)
52 / WebDAV
\ (webdav)
53 / Yandex Disk
\ (yandex)
54 / Zoho
\ (zoho)
55 / premiumize.me
\ (premiumizeme)
56 / seafile
\ (seafile)
Storage> 18
client_id
and client_secret
you can either use CTRL + V or Right-Click > Paste to paste these values.** See help for drive backend at: https://rclone.org/drive/ **
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> 913376756680-r47i6pcl1qtsmuerkqqe4lfijp2596d8.apps.googleusercontent.com
OAuth Client Secret
Leave blank normally.
Enter a string value. Press Enter for the default ("").
client_secret> _h28cMrHLRq3-RGbl6svydes
Scope that rclone should use when requesting access from drive.
Enter a string value. Press Enter for the default ("").
Choose a number from below, or type in your own value
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
ID of the root folder
Leave blank normally.
Fill in to access "Computers" folders (see docs), or for rclone to use
a non root folder as its starting point.
Note that if this is blank, the first time rclone runs it will fill it
in with the ID of the root folder.
Enter a string value. Press Enter for the default ("").
root_folder_id>
Service Account Credentials JSON file path
Leave blank normally.
Needed only if you want use SA instead of interactive login.
Enter a string value. Press Enter for the default ("").
service_account_file>
Edit advanced config? (y/n)
y) Yes
n) No (default)
y/n>
Use auto config?
* Say Y if not sure
* Say N if you are working on a remote or headless machine
y) Yes (default)
n) No
y/n> n
Option config_token.
rclone authorize drive XXXXX
command and press CTRL + C to copy. You can also Right Click
on the link and click Copy
.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" "sraZFcIgSnHpvQDONSMLE6BuT6VBpZC1VzmvJClz6A3oz3RyGLbkMy1tJ2eswauz54N4EwgyR9GUklXcua5p3C6W1R3ArKbuZsv2z4SUDqkq8knwgfBynk1wotaMknraktLa07oB7klPbwi7NiuVgXLYwoCBTKazsUm3AQKConmpccFFgSXL90IChWXauf04o47G3PGbBXrqbCgvWlu"
Then paste the result.
Enter a value.
config_token>
config_token
.Log in and authorize rclone for access
Enter verification code> 4/Yx901MTZ-tAyvoWbn r94u-XeO00XYYWWVIvCSpMR-VfwDvzPhYnsNZTidRUk
Configure this as a team drive?
y) Yes
n) No (default)
y/n> n
--------------------
[Gd]
type = drive
client_id = 913376756680-r47i6pcl1qtsmuerkqqe4lfijp2596d8.apps.googleusercontent.com
client_secret = _h28cMrHLRq3-RGbl6svydes
scope = drive
token = {"access_token":"ya29.A0AfH6SMA8JJDMOsxl7wNGKXvyIT2keFjVacnqIbAtqOJy9l2AHjAckJ44C9zWhhai8UrF6OsF8Kd94YAWGmYi3lLhOHB1XEe-YwApf02t9RTE1zZf5kg9t3uCL8qt1jwYGd1mta3tbqp2Blq5YEBC3zRz2SGYLYD9VxWcex-M1QA","token_type":"Bearer","refresh_token":"1//0gt5G2xupUkMECgYIARAAGBASNwF-L9IrCmP9WembZ-VOU-6TDo0-Z42jl5TimMQlxrsKXVBXvqV3_oFZiy0sKYB-e3OkLvSA9o0","expiry":"2020-11-06T16:49:02.557474874Z"}
--------------------
y) Yes this is OK (default)
e) Edit this remote
d) Delete this remote
y/e/d>
Current remotes:
Name Type
==== ====
Gd drive
e) Edit existing remote
n) New remote
d) Delete remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config
e/n/d/r/c/s/q> q
Right Click
within the file browser and select New Folder
to create a folder for the mount. Select the new folder and click Choose./storage/gigadrive-gdrive-mount
.rclone.conf
configuration file..conf
file to the path /storage/.appdata/rclone/xdg/config/rclone/
using FTP or any other available filebrowser app.To view the
.appdata
folder, you may need to turn onShow Hidden Files
or similar options in your FTP/Filebrowser app. If you are using Filezilla FTP client then you can follow this guide.
rclone.conf
has been uploaded, simply reboot your rclone application from the Applications page.Right Click
within the file browser and select New Folder
to create a folder for the mount. Select the new folder and click Choose./storage/gigadrive-gdrive-mount
.To create your rclone mount service with custom mount parameter(s), make sure to modify File > Preferences… > Mount options: within the rclone browser app.
Shutdown rclone.
To uninstall one or more rclone mount service, simply delete the appropiate mount file in the /storage/.appdata/rclone/xdg/config/rclone-mounts/
folder. If you want to remove all mounts then you can remove the complete folder.
You can delete the folder either via FTP or using the SSH app.
rm -rf /storage/.appdata/rclone/xdg/config/rclone-mounts/
To troubleshoot and find errors related to rclone mount, open the following log file using FTP/File browser app on your GigaDrive.
/storage/app/rclone/rclone_mount.log
client_id
and client_secret
for google driveTake the following steps to generate your own client_id
and client_secret
. This is only useful if you are a heavy google drive user.
RClone
and click Create.Google Drive API
for the project you have just created.Click Here to configure OAuth consent screen. Set User Type to External
and Click Create.
On the next page set App name to RClone
. Set your email address in the field User support email and Email addresses (Under the header Developer Contact Information). Then click the button Save and Continue.
Click Here to create OAuth client ID. Set Application type to Desktop app
and click Create.
Once done, a popup will appear with your own google drive client_id
and client_secret
.
When you use rclone with Google drive in its default configuration you are using rclone’s client_id. This is shared between all the rclone users. There is a global rate limit on the number of queries per second that each client_id can do set by Google.
config_token
for google drive setuppowershell
. Then press enter.start-process PowerShell -verb runas; exit
and press Enter.Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
choco install rclone
rclone authorize "drive" "XXXXX"
command from the previous step. This will open a new tab in your desktop browser. Choose your google account and click Continue.config_token
.