How to Configure Rclone with Google Drive (Step‑by‑Step Guide)
This guide walks you through setting up Rclone with Google Drive using your own Google Cloud OAuth credentials. It is suitable for backups, migrations, and syncing data between Google Drive and your local machine.
Prerequisites
Google account
Access to Google Cloud Console
Windows machine (steps can be adapted for Linux/macOS)
Basic command‑line familiarity
Step 1: Download and Install Rclone
Download Rclone from the official site:
π https://rclone.org/downloads/
https://github.com/rclone/rclone/releases
Extract the archive
Move the folder to:
C:\Program Files\Rclone(Optional) Add Rclone to your System PATH for global access
Step 2: Create a Google Cloud Project
Open Google Cloud Console:
π https://console.cloud.google.com/If you don’t have a project, create one:
π https://console.cloud.google.com/projectcreateSelect the newly created project
Step 3: Enable Google Drive API
Go to API Dashboard:
π https://console.cloud.google.com/apis/dashboardOpen API Library:
π https://console.cloud.google.com/apis/librarySearch for Google Drive API
Click Enable
Step 4: Configure OAuth Consent Screen
Go to Credentials:
π https://console.cloud.google.com/apis/credentialsClick OAuth consent screen
Choose External (recommended)
Fill required fields:
App name
User support email
Developer contact email
Save and continue
Step 5: Add OAuth Scopes
On the Data Access tab, add the following scopes:
Scopes reference:
π https://console.cloud.google.com/auth/scopes
Save and continue
Step 6: Create OAuth 2.0 Client ID
Navigate to Credentials
Click Create Credentials → OAuth Client ID
Application type: Desktop App
Save and note down:
Client ID
Client Secret
π Official Rclone guide:
π https://rclone.org/drive/#making-your-own-client-id
Step 7: Publish App (Recommended)
To avoid authorization warnings:
Go to Verification Center
Publish the app (even if unverified)
Step 8: Configure Rclone
Open Command Prompt inside:
C:\Program Files\RcloneRun:
rclone configFollow prompts:
n→ New remoteName:
testStorage:
22(Google Drive)Enter Client ID
Enter Client Secret
Scope: full access (default recommended)
Root folder ID: leave blank (or add shared folder ID)
Auto config:
y
Browser opens → authorize Google account
Step 9: Path Format in Rclone
Rclone paths follow this format:
drive_name:path
Example:
test:backup/folder
Step 10: Copy Data from Google Drive to Local
Example command:
rclone copy test: C:\Intel \
--drive-root-folder-id some-random-share-id \
-P
Flags Explained
test:→ Rclone remote nameC:\Intel→ Local destination--drive-root-folder-id→ Shared Drive or folder ID-P→ Progress view
Common Use Cases
Backup Google Drive to local storage
Sync shared drives
Migrate data between Google accounts
Scheduled backups using Task Scheduler / cron
Troubleshooting Tips
Re‑run
rclone configif auth failsEnsure Google Drive API is enabled
Use
rclone ls test:to verify accessCheck quota limits in Google Cloud Console
References
Rclone Docs: https://rclone.org/docs/
Google Drive Backend: https://rclone.org/drive/
Google Cloud Console: https://console.cloud.google.com/
✅ Your Rclone + Google Drive setup is now complete.