Getting rclone Setup for Google Team Drive

April 17, 2019

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.

curl | sudo bash

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.

rclone config

Then we’ll choose to enter in a Name for the endpoint, in my case, today it’s livearchivist-2.

Storage> 12

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.

1. Log into the API Console (
2. Select an existing project or create a new one
3. Click Enable APIs and Services
4. Search for "Drive"
5. Choose "Google Drive API"
6. Click Enable
7. Click on the header to get back to the dashboard
8. Choose Credentials
9. Click "Create Credentials"
10. "OAUTH Client ID"
11. Click "Configure Consent Screen" on the right
12. Fill in an Application Name, I chose "Livearchivist-2"
13. Application Type "Other", Name "Livearchivist-2", Create

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 client_id.

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 rclone config.

Then you’re going to copy and paste your client_secret.

scope should be set to “1” in most cases.

Leave root_folder_id and 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.