Loading... <del>经群友反应超过2gb的文件依然报错,此贴估计也不适用2gb以上文件</del>不同域不一样 最近因为疫情的原因,微软onedrive同组织转存文件时单文件超过<strong>2GB</strong>会报错,在win端可以用 Air Explorer 里转存已经共享的文件,但是最近试了一下,感觉使用体验不是很好,刚好看到一篇rclone 转存SharePoint资源的链接,使用一下感觉不错,分享一下。 <a class="wp-editor-md-post-content-link" href="https://www.zuar.com/blog/using-rclone-for-sharepoint-shared-files/">原教程链接</a> 优点: 基于rclone,可在vps上传输 缺点: 过程繁琐,一次只能挂载一个链接 开始教程,rclone相关指令请自行查询 <code>rclone config</code> 添加新的名称后选择 <strong>Webdav</strong> <pre><code class="">Storage> 34 ** See help for webdav backend at: https://rclone.org/webdav/ ** URL of http host to connect to Enter a string value. Press Enter for the default (""). Choose a number from below, or type in your own value 1 / Connect to example.com \ "https://example.com" url> https://xzgfwacnz0-my.sharepoint.com/personal/wei666_1ove_club/Documents/ #链接说明,格式https://myacct.sharepoint.com/personal/useremail_domain_suffix/Documents/ #myacct为组织名,useremail_domain_suffix为自己账号想换 #比如:我的onedrive地址:https://xzgfwacnz0-my.sharepoint.com/personal/wei666_1ove_club/_layouts/15/onedrive.aspx?view=3 #此时修改后地址为:https://xzgfwacnz0-my.sharepoint.com/personal/wei666_1ove_club/Documents/ Name of the Webdav site/service/software you are using Enter a string value. Press Enter for the default (""). Choose a number from below, or type in your own value 1 / Nextcloud \ "nextcloud" 2 / Owncloud \ "owncloud" 3 / Sharepoint \ "sharepoint" 4 / Other site/service or software \ "other" vendor> 3 #此处选择Sharepoint User name Enter a string value. Press Enter for the default (""). user> wei666@1ove.club #此处填写用户名 Password. y) Yes type in my own password g) Generate random password n) No leave this optional password blank (default) y/g/n> y Enter the password: password: #此处填写密码,密码不显示 Confirm the password: password: Bearer token instead of user/pass (eg a Macaroon) Enter a string value. Press Enter for the default (""). bearer_token> #此处留空,直接回车 Edit advanced config? (y/n) y) Yes n) No (default) y/n> y #此处选择y Command to run to get a bearer token Enter a string value. Press Enter for the default (""). bearer_token_command> Remote config -------------------- [loveme] type = webdav url = https://xzgfwacnz0.sharepoint.com/personal/wei666_1ove_club/Documents/ vendor = sharepoint user = wei666@1ove.club pass = *** ENCRYPTED *** -------------------- y) Yes this is OK (default) e) Edit this remote d) Delete this remote y/e/d> y #此处选择y </code></pre> 这是配置的第一部分,配置完可以用命令检查配置是否正确 <pre><code class="">检查命令 rclone lsd loveme: #此处loveme换成你自己设置的驱动器名字 错误示例,请检查用户名或者密码或者url root@vm217835:~# rclone lsd loveme: 2020/09/26 09:29:40 Failed to create file system for "loveme:": wst:FailedAuthentication: Authentication Failure (AADSTS50126: Error validating credentials due to invalid username or password.) 正确示例,显示自己onedrive文件 root@vm217835:~# rclone lsd loveme: -1 2020-05-21 18:28:34 -1 AV -1 2020-02-08 17:41:50 -1 Forms -1 2020-05-30 05:35:23 -1 U3-web -1 2020-04-26 17:49:26 -1 VCB压制组 -1 2020-09-26 08:43:22 -1 upload -1 2020-04-27 08:56:01 -1 临时 -1 2020-05-27 11:24:40 -1 动漫花园 -1 2020-03-21 17:55:10 -1 哔哩哔哩动画 -1 2020-03-19 17:13:48 -1 哔哩哔哩电影 -1 2020-05-15 15:31:45 -1 学习资料 -1 2020-05-17 17:55:55 -1 本子 -1 2020-05-17 17:55:44 -1 漫画 -1 2020-05-31 05:07:31 -1 电影 -1 2020-06-12 18:21:41 -1 电视剧 -1 2020-07-04 07:17:27 -1 番剧 -1 2020-07-18 08:38:44 -1 番剧整理 -1 2020-03-10 17:25:07 -1 美剧 -1 2020-09-19 16:50:17 -1 转存 -1 2020-04-26 17:50:32 -1 软件 -1 2020-06-19 06:48:06 -1 里番 </code></pre> 上部分成功后就可以开始分享相关的部分了 打开onedrive网页版的链接,与我共享部分 <img src="http://weinb.top/usr/uploads/2020/09/复制链接.png" alt="" style=""> 此时复制好的链接 <code>https://xzgfwacnz0-my.sharepoint.com/:f:/r/personal/shadowsoldier_1ove_club/Documents/%E5%85%B6%E4%BB%96%E9%87%8C%E7%95%AA/%E9%9B%B7%E7%81%AB%E5%89%91%E5%A4%A7%E5%90%88%E9%9B%86/[Hills]/[Hills]%E8%81%96%E3%83%96%E3%83%AA%E3%83%A5%E3%83%B3%E3%83%92%E3%83%AB%E3%83%87%E5%AD%A6%E5%9C%92%20%E5%B0%91nq%E5%A3%AB%E5%9B%A3%E3%81%A8%E7%B4%94%E7%99%BD%E3%81%AE%E3%83%91%E3%83%B3%E3%83%86%E3%82%A3%20THE%20ANIMATION?csf=1&web=1&e=V4sM8W</code> 修改后的链接 <code>https://xzgfwacnz0-my.sharepoint.com/personal/shadowsoldier_1ove_club/Documents/%E5%85%B6%E4%BB%96%E9%87%8C%E7%95%AA/%E9%9B%B7%E7%81%AB%E5%89%91%E5%A4%A7%E5%90%88%E9%9B%86/[Hills]/[Hills]%E8%81%96%E3%83%96%E3%83%AA%E3%83%A5%E3%83%B3%E3%83%92%E3%83%AB%E3%83%87%E5%AD%A6%E5%9C%92%20%E5%B0%91nq%E5%A3%AB%E5%9B%A3%E3%81%A8%E7%B4%94%E7%99%BD%E3%81%AE%E3%83%91%E3%83%B3%E3%83%86%E3%82%A3%20THE%20ANIMATION</code> 自行研究链接规律,也可以对群内的机器人使用/url命令来转换链接 <img src="http://weinb.top/usr/uploads/2020/09/链接转换.png" alt="" style=""> 复制修改好的链接,进入rclone的配置文件rclone.conf,找到新建驱动器的配置,将url换为复制的链接 <img src="http://weinb.top/usr/uploads/2020/09/替换链接.png" alt="" style=""> rclone ls -l 驱动器名称 查看是否成功,有文件则表示成功 <pre><code class="">root@vm217835:~# rclone lsd loveme: </code></pre> 最后修改:2022 年 08 月 28 日 © 允许规范转载 打赏 赞赏作者 支付宝微信 赞 0 如果觉得我的文章对你有用,请随意赞赏
2 条评论
请问呢修改连接后提示这个怎么办
D:\download\idm\rclone-v1.53.3-windows-amd64>rclone lsd gf:
2021/08/18 08:57:06 ERROR : : error listing: directory not found
2021/08/18 08:57:06 Failed to lsd with 2 errors: last error was: directory not found
修改链接前是可以正常ls出文件
大概率是链接不对