OCI上自建 Serve S3 与 GoogleDrive 在国内使用,要看网络;(移动)网络不好速度很慢,而oneDrive没有这情况。
Google Drive 关键点:使用代理连接参数
--http-proxy protocol://username:password@server:port
# socks5://127.0.0.1:12345
# http://username:password@proxyserver:12345
Google Drive 配置
如果只是使用rclone.exe config来添加google云硬盘,不加参数 --http-proxy,会在 2026/01/19 16:35:51 NOTICE: Got code 这一步配置失败,提示:

正确的配置命令为rclone.exe config --http-proxy socks5://127.0.0.1:1080,且浏览器已配置好代理能正常访问 Google Drive,浏览器要看到下图效果。

在只有CLI的机器(NAS或IDC)添加配置方法
使用远程授权方式
- 在【Use web browser to automatically authenticate rclone with remote?】步骤输入【N】,会提示你到可以使用浏览器的机器上,运行
rclone authorize "onedrive"。- 注意,以你实际的提示内容为准。,比如本次就是
rclone authorize "drive" "eyxxxxxIn0"
- 注意,以你实际的提示内容为准。,比如本次就是
- 在可以使用浏览器的机器上,运行第1步的提示命令,如果需要使用代理连接,也加上对应参数
--http-proxy protocol://username:password@server:port,复制获取到token(为json格式)。 - 在只有CLI机器上,输入token就可以了。
复制配置文件内容
还有一个更简单的方法,前提已经有一台设备连接成功,直接复制 rclone.conf 文件就可以了。
Google Drive Copy/BiSync
set "HPS=--http-proxy socks5://127.0.0.1:1080"
rclone.exe lsd googleDrive: %HPS%
rclone.exe mkdir googleDrive:AI-Energize %HPS%
set "syncRoute=D:\Users\Obsidian\AI-Energize googleDrive:AI-Energize"
rclone.exe copy %syncRoute% %HPS% -P -v
rclone.exe bisync %syncRoute% %HPS% --resync -P -v
发表回复