27

rclone 官方版无管理员OneDrive使用

 3 years ago
source link: https://www.taterli.com/7222/
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.

用WebDAV配置.

No remotes found - make a new one
n) New remote
s) Set configuration password
q) Quit config
e/n/d/r/c/s/q> n
name> abceducn #这里给盘写个名字
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 / 1Fichier
   \ "fichier"
 2 / Alias for an existing remote
   \ "alias"
 3 / Amazon Drive
   \ "amazon cloud drive"
 4 / Amazon S3 Compliant Storage Provider (AWS, Alibaba, Ceph, Digital Ocean, Dreamhost, IBM COS, Minio, etc)
   \ "s3"
 5 / Backblaze B2
   \ "b2"
 6 / Box
   \ "box"
 7 / Cache a remote
   \ "cache"
 8 / Citrix Sharefile
   \ "sharefile"
 9 / Dropbox
   \ "dropbox"
10 / Encrypt/Decrypt a remote
   \ "crypt"
11 / FTP Connection
   \ "ftp"
12 / Google Cloud Storage (this is not Google Drive)
   \ "google cloud storage"
13 / Google Drive
   \ "drive"
14 / Google Photos
   \ "google photos"
15 / Hubic
   \ "hubic"
16 / In memory object storage system.
   \ "memory"
17 / JottaCloud
   \ "jottacloud"
18 / Koofr
   \ "koofr"
19 / Local Disk
   \ "local"
20 / Mail.ru Cloud
   \ "mailru"
21 / Mega
   \ "mega"
22 / Microsoft Azure Blob Storage
   \ "azureblob"
23 / Microsoft OneDrive
   \ "onedrive"
24 / OpenDrive
   \ "opendrive"
25 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
   \ "swift"
26 / Pcloud
   \ "pcloud"
27 / Put.io
   \ "putio"
28 / QingCloud Object Storage
   \ "qingstor"
29 / SSH/SFTP Connection
   \ "sftp"
30 / Sugarsync
   \ "sugarsync"
31 / Transparently chunk/split large files
   \ "chunker"
32 / Union merges the contents of several remotes
   \ "union"
33 / Webdav
   \ "webdav"
34 / Yandex Disk
   \ "yandex"
35 / http Connection
   \ "http"
36 / premiumize.me
   \ "premiumizeme"
Storage> 33 #这里选WebDAV
** 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://xxx-my.sharepoint.com/personal/xxx_abc_edu_cn/Documents #这里给出SharePoint对应地址,比如这里tenant,用户名需要改为自己的.
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> [email protected] #这里填账号
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> 
Remote config
--------------------
[dlnueducn]
type = webdav
url = https://xxx-my.sharepoint.com/personal/xxx_abc_edu_cn/Documents
vendor = sharepoint
user = [email protected]
pass = *** ENCRYPTED ***
--------------------
y) Yes this is OK (default)
e) Edit this remote
d) Delete this remote
y/e/d> 
Current remotes:

Name                 Type
====                 ====
dlnueducn            webdav

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>

配置好是可以使用了,但是问题还是不少的.

root@debian-s-1vcpu-1gb-sfo2-01:~# rclone copy 1GB.test abceducn:/ -P
Transferred:      953.674M / 953.674 MBytes, 100%, 17.628 MBytes/s, ETA 0s
Errors:                 0
Checks:                 0 / 0, -
Transferred:            1 / 1, 100%
Elapsed time:       54.1s
root@debian-s-1vcpu-1gb-sfo2-01:~# rclone ls abceducn:/
1000000000 1GB.test
  9976138 傅颖 - 谁羡慕像我这样强的人.mp3
     8302 Forms/All.aspx
     4250 Forms/DispForm.aspx
     4250 Forms/EditForm.aspx
     1898 Forms/GroupDocuments.aspx
     1898 Forms/SharedWithGroup.aspx
     8302 Forms/SharedWithMe.aspx
     4250 Forms/Upload.aspx
    11389 Forms/template.dotx

rclone copy “abceducn:/傅颖 – 谁羡慕像我这样强的人.mp3” . -P

Transferred: 9.514M / 9.514 MBytes, 100%, 4.298 MBytes/s, ETA 0s

Errors: 0

Checks: 0 / 0, –

Transferred: 1 / 1, 100%

Elapsed time: 2.2s

限制比较多:

  • 不支持世纪互联
  • 文件大小限制: 2048MByte
  • 传输效率:低
  • 稳定性:低
  • 容错:低

常见错误:

  1. This is a temporary issue, so try again in a few minutes. => 文件超大,网速过慢.(一分钟上传不完就会提示失败)
  2. 413 Request Entity Too Large => 文件太大,直接被拒.
  3. Something went wrong => 上传速度过慢.
  4. 下载文件大小不正确 => 下载的文件超大.

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK