-
Notifications
You must be signed in to change notification settings - Fork 0
rclone setup
OctavianTocan edited this page Oct 7, 2025
·
2 revisions
The script automatically installs rclone via WinGet if not found. Manual installation available from rclone.org/downloads.
winget install Rclone.Rclone --silent --accept-source-agreementsThe script searches for rclone in:
- Windows PATH
- WinGet installation directory:
%LOCALAPPDATA%\Microsoft\WinGet\Links\
-
Create Service Account:
- Google Cloud Console → IAM & Admin → Service Accounts
- Create account with "Editor" role
- Generate JSON key
-
Place Credentials:
- Save JSON as
.rclone/service-account.json - Never commit this file (gitignored)
- Save JSON as
-
Configure rclone.conf:
[gdrive] type = drive scope = drive service_account_file = .rclone/service-account.json
- Server-to-server auth: No interactive login required
- Shared credentials: All team members use same account
- CI/CD friendly: Perfect for automated environments
- Scoped access: Only accesses configured Drive folder
- Service account JSON contains private keys
- Store securely, limit access to authorized personnel
- Use Google Cloud IAM for permission control
- Never share config files containing OAuth tokens
The script verifies:
- rclone executable exists
- Config file is present
- Service account file accessible
- Paths are valid
- Restart PowerShell after WinGet installation
- Add rclone to PATH manually
- Check WinGet installation location
- Ensure
.rclone/rclone.confexists - Verify file path in
.env
- Check service account JSON validity
- Verify Google Drive sharing permissions
- Confirm service account has Editor access