共计 3142 个字符,预计需要花费 8 分钟才能阅读完成。
提醒:本文最后更新于2026-09-10 11:26,文中所关联的信息可能已发生改变,请知悉!

OneDrive for Businesss本质上就是基于sharepoint的应用,在SharePoint中创建一个SharePoint站点,默认可以储存大小为1 TB,当存储使用达到90%时会自动扩容到25TB.可以创建无限个SharePoint,所以理论上可以拥有无限大的储存空间。
SharePoint上传文件的方法
1:登陆SharePoint网页端直接上传文件
2:Rclone挂载SharePoint
rclone config #开始配置
root@lb-VM:~# rclone config
Current remotes:
e) Edit existing remote
n) New remote
d) Delete remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config
e/n/d/r/c/s/q> n
name> onedrive #名字自定义
Type of storage to configure.
Enter a string value. Press Enter for the default ("").
Choose a number from below, or type in your own value
1 / A stackable unification remote, which can appear to merge the contents of several remotes
\ "union"
2 / Alias for a existing remote
\ "alias"
3 / Amazon Drive
\ "amazon cloud drive"
4 / Amazon S3 Compliant Storage Providers (AWS, Ceph, Dreamhost, IBM COS, Minio)
\ "s3"
5 / Backblaze B2
\ "b2"
6 / Box
\ "box"
7 / Cache a remote
\ "cache"
8 / Dropbox
\ "dropbox"
9 / Encrypt/Decrypt a remote
\ "crypt"
10 / FTP Connection
\ "ftp"
11 / Google Cloud Storage (this is not Google Drive)
\ "google cloud storage"
12 / Google Drive
\ "drive"
13 / Hubic
\ "hubic"
14 / JottaCloud
\ "jottacloud"
15 / Local Disk
\ "local"
16 / Mega
\ "mega"
17 / Microsoft Azure Blob Storage
\ "azureblob"
18 / Microsoft OneDrive
\ "onedrive"
19 / OpenDrive
\ "opendrive"
20 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
\ "swift"
21 / Pcloud
\ "pcloud"
22 / QingCloud Object Storage
\ "qingstor"
23 / SSH/SFTP Connection
\ "sftp"
24 / Webdav
\ "webdav"
25 / Yandex Disk
\ "yandex"
26 / http Connection
\ "http"
Storage> 18 #Microsoft OneDrive
** See help for onedrive backend at: https://rclone.org/onedrive/ **
Microsoft App Client Id
Leave blank normally.
Enter a string value. Press Enter for the default ("").
client_id>
Microsoft App Client Secret
Leave blank normally.
Enter a string value. Press Enter for the default ("").
client_secret>
Edit advanced config? (y/n)
y) Yes
n) No
y/n> n
Remote config
Use auto config?
* Say Y if not sure
* Say N if you are working on a remote or headless machine
y) Yes
n) No
y/n> n
For this to work, you will need rclone available on a machine that has a web browser available.
Execute the following on your machine:
rclone authorize "onedrive"
Then paste the result below:
result> {"access_token":"EwBwA8l6BAAURxxxxxxxxxxxxxxxxxxxxxxxxxxxCMszTZEI27EacbtK!VgGItbS7sxc","expiry":"2018-12-24T20:15:31.0560991+08:00"}
2018/12/24 06:39:03 ERROR : Failed to save new token in config file: section 'od100' not found
Choose a number from below, or type in an existing value
1 / OneDrive Personal or Business #(OneDrive个人或企业)
\ "onedrive"
2 / Root Sharepoint site #(Root Sharepoint网站)
\ "sharepoint"
3 / Type in driveID #(输入DriveID)
\ "driveid"
4 / Type in SiteID #(输入SiteID)
\ "siteid"
5 / Search a Sharepoint site #(搜索Sharepoint网站) (推荐项方便简单)
\ "search"
Your choice> 5
what to search for> lbdcj #创建的sharepoint站点名
Found 1 sites,please select the one you want to use:
0: lbdcj (https:officeommunity.sharepoint.cn/)sites/lbdcj) id=officecommunity.sharepoint******************************
chose drive to use: 0 #选择要使用的驱动器
Is that okay?
y) Yes
n) No
y/n> y
--------------------
[onedrive]
type = onedrive
token = {"access_token":"EwBwA8l6BAAURxxxxxxxxxxxxxxxxxxxxxxxxxxxCMszTZEI27EacbtK!VgGItbS7sxc","expiry":"**********"}
drive_id = xxxxxxxxxxxxxx
drive_type = ********
--------------------
y) Yes this is OK
e) Edit this remote
d) Delete this remote
y/e/d> y
Current remotes:
Name Type
==== ====
onedrive onedrive
#这里能看到上面自定义名称说明成功了
e) Edit existing remote
n) New remote
d) Delete remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config
e/n/d/r/c/s/q> q
# 退出
正文完