Please follow the steps give below carefuly. For this tutorial we will use “rclone” and a Runtime Cloud Service (Colab Noteboks).
I have tried to make tutorial simple by using Rclone WebUI, as many users are not comfortable with command line, but if you are comfortable then use rclone command line.
Remember trying to learn how to configure rclone is time consuming, So please provide 15 mins, then its all simple and fast as flash (probably). Installation (< 1min), Configuration (<10 min), Testing (< 1 min), Running( <3 min)
Part 1. Installing and Configuring “rclone” on Local Machine (your computer)Part 2. Using configuration to run rclone in cloud service and transfer data online.
Notes:
- We will use Google Drive, One Drive and Dropbox for example but you can add/modify as you like.
- We will first install and configure rclone on local system, as rclone require browser support for configuring. If you have browser supported vps then just install it on vps
First, we need to install rclone on our local system. I have used Windows as it is widely used (after months, I prefer Linux!).
-
Step 1: Go to https://rclone.org/downloads/ or https://github.com/rclone/rclone/releases/tag/v1.49.3 . Download ZIP file according to your OS and architecture. (In my case, it is Windows 64 bit).
-
Step 2: Extract zip file, and rename folder to “rclone”. Copy rclone folder and paste it in C: drive.
-
Step 3: Open “cmd” (Windows + X >> select command prompt or Window + R >> Enter “cmd”)
-
Step 4: Go to rclone directory in cmd by:
cd C:\rclone
Note: For Linux/macOS/BSD simply run in terminal:
curl https://rclone.org/install.sh | sudo bash
-
Step 5: Configuration of remotes (cloud storage) using rclone WebUI (GUI is BETA mode so there may be some issues).
Run following in cmd:
rclone rcd --rc-web-gui --rc-user admin --rc-pass admin
Note: If asked, enter username and password “admin”. If it gives any error,close browser and open cmd press Ctr + C to abort and run above command again.
-
Step 6: Now goto Configs and click on New Config. (We will setup Google Drive first, this very time consuming, others are fast and simple! )
-
Step 7: Enter name: gdrive (you can enter as you like)
-
Step 8: Select provider as Google Drive from dropdown list.
-
Step 9: Click on Step 2: Setup Drive. Here we need to enter Client ID and Client Secret. Follow below steps to get them (This is one time only):
-
Go to https://console.developers.google.com/ and Sign in.
-
Click on “CREATE” to create a new project.
-
Enter a project name like “rclone-yourname” (anything) and click “CREATE”.
-
Click on “ENABLE APIS AND SERVICES” on the top.
- Search “google drive”, select Google Drive API and “ENABLE” it
-
Select Credential from panel on left side. (not “create credential”)
-
Now on this screen click “Create Credential” and select “OAuth client ID”.
- Click on “Configure consent screen”
- Enter application name “C2C Transfer” (Your choice) and Click “Save” at the bottom
- Now select Other and click “Create” (Default name is ok, change if you wish)
- Finally you are prompted with client-id and client secret, copy-paste them in Rclone WebUI
Note: We can use rclone default client id and secret by leaving them blank. But this may give low performance therefore rclone recommend to use our own.
-
-
Step 10: In WebUI Enter “ drive” scope, leave rest blank and click Create Config .
-
Step 11: This will open new tab and sign in. If it ask app is not verified then, click advance and Go to C2C Transfer (Don’t worry its safe, it is app create by you!!) and Click Allow >> Allow. Success !
-
Step 12: Create new config for OneDrive as shown in images(Step 6). Here no need of Custom Client ID, just use default by leaving empty. Enter type as business in Advance option. Click create and login >> success!!
-
Step 13: Create new config for Dropbox. Just enter name "dropbox"(as u like) and select type. Click Create Config and Log in to your account . Thats it!!
Try others and for more info visit rclone docs, links at bottom
-
Step 14: Click Log out and close browser. Open cmd and press Ctr + C (if process not terminated automatically)
-
Run following command in cmd to check if remotes were created successfully. If it shows cloud drives than config was successful.
rclone listremotes
- Step 1: Goto Google Drive and create New Folder with name “Config”
- Step 2: Goto
C:\Users\<username>\.config\rclone
folder and Upload rclone.config to newly created Config folder in google drive (by drag and drop) - Step 3: Goto https://github.com/gokupistol/c2c-transfer.
- Step 4: Click the button which says 'Open in Colab'.
- Step 5: Goto File > Save a copy in Drive... (a new tab opens with the copy of this notebook).
- Step 6: Run the whole notebook in sequence.
- Step 7: Follow directions there.