42

Rclone连接Onedrive速度慢?转存上传限速?配置API加速

 2 years ago
source link: https://www.chenweiliang.com/cwl-27906.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
a

Rclone连接Onedrive速度慢?转存上传限速?配置API加速

2022年5月17日

在使用 Rclone 传输文件到 OneDrive 时,可能会遇到速度很慢、断线等问题……

为何Rclone连接Onedrive速度慢?

根本原因是触发了OneDrive API的限制,而默认的Rclone内置API被多人同时使用,所以这些问题也越来越明显……

Rclone连接Onedrive速度慢?转存上传限速?配置API加速

使用自建私有API连接OneDrive可以大大改善这些情况,而且对于三个月的Office 365 E5开发者试用版,偶尔使用Rclone会有自动续费的可能,而不是刻意刷API,更加安全和稳定。

此外,自建API也可以被其他账户和其他应用程序使用。

如果是Google Drive自建API,请参考这篇教程 ▼

Rclone连接Onedrive速度测试

前者是网友测试使用Rclone默认的API 连接Onedrive的速度▼

Rclone连接Onedrive速度测试  前者是网友测试使用Rclone默认的API 连接Onedrive的速度 第3张

后者是网友测试使用自己申请的微软API 连接Onedrive的速度▼

后者是网友测试使用自己申请的微软API 连接Onedrive的速度 第4张

  • 可以清楚的看到,速度相差10倍以上。

如何创建微软 Onedrive 网盘API?

微软Azure管理中心获取Client ID和Client secret的方法,请点击下方链接查看如何创建微软 Onedrive 网盘API ▼

Rclone获取token

在本地电脑上下载 Rclone ▼

以Windows为例,解压后进入rclone.exe所在文件夹,在资源管理器地址栏中输入 cmd 回车,即可在当前路径打开命令提示符。

替换以下命令中的Client_IDClient_secret 并执行 ▼

rclone authorize "onedrive" "Client_ID" "Client_secret"
  • 接下来会弹出一个浏览器,要求你登录你的帐户进行授权。

授权后,命令提示符窗口中会出现以下消息:

If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK