Rclone Config加载OneDrive由于token太长老出错

我这两天刚搞了A1P和E3 MSDN全局,然后再开了子号,用rclone config的时候老是出错。

我用工具查了,token完全合法。我猜是token太长造成中间被截断,导致解析错误。

但这种方法需要先配置自己的Azure App ID & Secret, 参考本馆档案

然后在本地Mac的terminal里面,正常进行 rclone config。


Make sure your Redirect URL is set to "http://localhost:53682/" in your custom config.
Use auto config?
 * Say Y if not sure
 * Say N if you are working on a remote or headless machine
y) Yes (default)
n) No

### 只有这一步和在远程VPS的选择不一样
y/n> y

If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth?state=sTNKdwm2DAo7UlVsjl6NCw
Log in and authorize rclone for access
Waiting for code...
Got code

Choose a number from below, or type in an existing value
 1 / OneDrive Personal or Business
   \ "onedrive"
 2 / Root Sharepoint site
   \ "sharepoint"
 3 / Type in driveID
   \ "driveid"
 4 / Type in SiteID
   \ "siteid"
 5 / Search a Sharepoint site
   \ "search"
Your choice> 1

最后生成的conf 文件在这

Mac-mini at ~/rclone ❯ ./rclone config file
Configuration file is stored at:
/Users/XXXXXXX/.config/rclone/rclone.conf

在这个rclone.conf文件拷到远程VPS,覆盖 /root/.config/rclone/rclone.conf

bwh49 at ~ ❯ rclone config file
Configuration file is stored at:
/root/.config/rclone/rclone.conf

覆盖之后,验证一下

Leave a Reply