rclone is just a tool which allows you to transfer files between cloud drives( your team drive, google drive, onedrive or Mega.nz etc).
In Colab we need it to mount our cloud drives as a file system so that handbrake can read and write files to the drive.
In order to use it you need to first configure on your local machine which will generate a “rclone.conf” file. You only need to set it up once.
Rclone download link = https://rclone.org/downloads/
A short tutorial for windows users for configuring rclone:
- Extract the downloaded file “rclone-v1.53.0-windows-amd64.zip”
- Open command line in the extracted folder by typing “cmd” in the address bar.
- type rclone config . It should output the below text:
No remotes found - make a new one
n) New remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config
n/r/c/s/q> n
- Press n and hit enter to create a new remote.
(For this example I’ll configuring for a google drive) - type in any name for the remote . lets say “mygdrive” , hit enter
- Now a list of supported cloud storage providers will show up . Choose a number associated with your cloud drive. Here google drive is 13 so we type 13 and hit enter.
- It’ll now ask for Client ID: press enter to skip this for now to use default
- Client secret: skip by hitting enter
- Scope : press 1 for Full access all files, excluding Application Data Folder.
- root folder id : skip by hitting enter
- service_account_file : skip
- Edit advanced config? : skip
- Use auto config : press enter, it’ll open up google login page in your browser to give access to rclone.
- Now after giving access , it’ll now ask “Configure this as a team drive?”
If you want to use it with your team drive type “y” otherwise hit enter and it’ll skip. I hit “y” for now. - Enter a team drive ID: It’ll now show list of team drives. choose your team drive and enter its number.
after that it’ll show the configuration. hit enter to confirm.
That’s it your team drive is configured to use it with rclone anywhere. You need to repeat the above steps to configure multiple cloud drives and it’ll get saved to rclone.conf
On Windows it is located in :
C:\Users<USERNAME>.config\rclone\rclone.conf
This is the file you need to upload in the 2nd cellSorry for late reply guys
Read more one rclone configuration here:
Also if you are interested in having your own client_id (I’ve heard that it improves performance but I haven’t noticed anything myself ) :
https://github.com/Cloudbox/Cloudbox/wiki/Google-Drive-API-Client-ID-and-Client-Secret
!