Getting rclone Setup for Google Team Drive
This is mostly just reference for me, because I get tired of hunting down all of the links and instructions for everything. I use a ton of storage for some of my projects and if you spend any time on /r/datahoarder, you’ll know why I use Google Drive.
These directions are written for Debian based distros, but can easily be adapted to other Linux versions. If you’re on Windows, sorry, I can’t help you.
Before we start, ensure you’ve created a Team Drive on your Google Account.
First things first, let’s get
rclone installed on your computer.
Note: All of the code is available on github, make sure to browse through it before piping to bash for an installation!
Now let’s create a remote connection for rclone to use.
Then we’ll choose to enter in a Name for the endpoint, in my case, today it’s
Here’s where things get a little more involved, we need to create a dedicated OAUTH connection string to ensure great performance. I followed rclone’s guide, but for posterity sake, I’ve clarified the things that have changed below.
At this point, Google will spit out an OAuth Client ID and Secret. Copy the Client ID and Paste it into your console window for
Pro-Tip: I had to copy my client ID into a text editor because there is an invisible return at the end when you copy from the browser window that breaks the
Then you’re going to copy and paste your
scope should be set to “1” in most cases.
service_account_file blank. When it asks if you want to Edit the Advanced Config, choose “n”. For Auto Config, I chose “n” because I was remotely connected to a server. If you’re configuring this on your workstation, say “y”.
If you choose “n”, copy and paste the link into a browser. Walk through the steps to choose to allow everything. At the end you will get a verification code, copy and paste that into your terminal window for “Enter verification code”.
Next it’ll ask you if you want to “Configure this as a team drive”, choose “y”. A list with Team Drive names will be populated, type the ID number of the drive you’d like to set up.
Finally, it’ll ask if everything is Okay, it should be. Choose “y”. Then you can quit
rclone config by typing “q”.
I hope this helps you get
rclone up and running for a Team Drive. If you have any questions, let me know.