OneDrive For Business CLI

OneDrive For Business是目前国内可访问、不限速、容量最大的网盘。为了方便使用和建立自己的中转站,这里收集了相关CLI工具。

工具名编程语言文件上传文件夹上传同步API显示上传进度
odriveBash&Python×不能自定义×
bash-onedrive-uploadBash×专属型api、
通用型GraphAPI
onedrivecmdPython××专属型api
GoodSync Bash××不能自定义?
skilion/onedrive××通用型GraphAPI×
rcloneGo专属型api?
onedriveClientPython3?????
0oVicero0/OneDriveBash×专属型api

#odrive使用

进入odrive登录页面,使用office365账号登录,授权。
进入https://www.odrive.com/account/authcodes,获取Auth Keys。
修改onedrive for business的name,如:OD4B,作为后期远程上传路径。

odrive也可以取外链分享,大流量下是否会失效,还需测试。测试链接:https://www.odrive.com/s/5fab93e4-cfdd-4dbc-a174-6aec30576f5d-5943e034

#bash-onedrive-upload使用(通用型API)

所需组件:
curl is used for accessing the API.
grep is used for filtering the parsed json output.
cut is used for value extraction from the filtered json output.
xargs is used for multi-threaded file uploads.
dd is used for chunked file uploads.
stat is used to determine the filesize.

#onedrivecmd使用

#0oVicero0/OneDrive使用

所需组件:
curl is used for accessing the API.
grep is used for filtering the parsed json output.
cut is used for value extraction from the filtered json output.
xargs is used for multi-threaded file uploads.
dd is used for chunked file uploads.
stat is used to determine the filesize.

#注意

onedrive上传时,对文件名有些限制,尽量不要有中文!尽量不要有中文!尽量不要有中文!详情请见Restrictions and limitations when you sync files and folders

One Reply to “OneDrive For Business CLI”

Leave a Reply

Your email address will not be published. Required fields are marked *