OneDrive(Business)¶
使用 RaiDrive CLI 在 Linux 上挂载 Microsoft 365 工作或学校账户附带的 OneDrive。可以挂载 My Files 或 Shared,也可以通过浏览器 URL 挂载任意文件夹。
要获取所需的账户、密钥或 ID,请参见 Windows 应用的 OneDrive(Business)指南中的准备工作。
进行 Microsoft 身份验证需要使用默认浏览器。
raidrivecli add onedrivebusiness
不带选项执行命令时,将挂载 My Files。可以通过 --subtype 选项选择 Shared。
raidrivecli add onedrivebusiness --subtype shared
如果未指定挂载目录,存储会挂载到 /mnt 下的相应目录,例如 /mnt/onedrivebusiness。要指定挂载目录,请使用 --mount-path 选项。
raidrivecli add onedrivebusiness --mount-path /myservices/onedrivebusiness
您可以使用从浏览器复制的 URL 挂载 OneDrive。这对于挂载特殊文件夹特别有用。
raidrivecli add onedrivebusiness --remote-url \
https://company-my.sharepoint.com/my?id=...
信息
OneDrive Business China 存储使用 onedrivebusinesschina 而不是 onedrivebusiness。
附加选项¶
--subtype <files|shared> My Files, Shared
--remote-url <url> folder URL in browser