Ang Rclone ba hinay nga magkonektar sa Onedrive?Dump upload speed limit? I-configure ang API acceleration

karon nga gigamit Rclone Kung gibalhin ang mga file sa OneDrive, mahimo nimong masugatan ang mga problema sama sa hinay nga tulin ug pagkadiskonekta...

Ngano nga ang Rclone hinay nga magkonektar sa Onedrive?

Ang hinungdan nga hinungdan mao ang pag-trigger sa limitasyon sa OneDrive API, ug ang default nga Rclone built-in nga API gigamit sa daghang mga tawo sa parehas nga oras, mao nga kini nga mga problema nahimong labi ka klaro ...

Ang Rclone ba hinay nga magkonektar sa Onedrive?Dump upload speed limit? I-configure ang API acceleration

Ang paggamit sa self-built nga pribado nga API aron makonektar sa OneDrive makapauswag pag-ayo niini nga mga sitwasyon, ug alang sa tulo ka bulan nga bersyon sa pagsulay sa developer sa Office 365 E5, ang panagsa nga paggamit sa Rclone adunay posibilidad sa awtomatik nga pagbag-o, kay sa tinuyo nga pag-brush sa API, nga mas luwas ug lig-on.

Dugang pa, ang mga self-built API mahimo usab nga gamiton sa ubang mga account ug uban pang mga aplikasyon.

Kung kini usa ka Google Drive nga self-built API, palihug tan-awa kini nga panudlo ▼

Ang Rclone nagkonektar sa Onedrive speed test

Ang una mao ang pagsulay sa katulin sa paggamit sa default nga API sa Rclone aron makonektar sa Onedrive▼

Ang Rclone konektado sa Onedrive speed test Ang una mao ang ikatulo nga litrato sa mga netizens nga nagsulay sa katulin sa paggamit sa default nga API sa Rclone aron makonektar sa Onedrive

Ang naulahi usa ka pagsulay sa mga netizens aron magamit ang Microsoft API nga ilang gi-aplay aron makonektar sa Onedrive ▼

Ang naulahi mao ang ikaupat nga litrato sa mga netizens nga nagsulay sa katulin sa pagkonekta sa Onedrive gamit ang Microsoft API nga ilang gi-apply.

  • Klaro nga makita nga ang kalainan sa tulin labaw pa sa 10 ka beses.

Giunsa paghimo ang Microsoft Onedrive network disk API?

Giunsa pagkuha ang Client ID ug sekreto sa Kliyente sa Microsoft Azure Management Center, palihug i-klik ang link sa ubos aron makita kung giunsa paghimo ang Microsoft Onedrive network disk API ▼

Ang Rclone nakakuha og token

I-download ang Rclone sa imong lokal nga kompyuter ▼

Dad-a ang Windows isip pananglitan, adto sa folder diin nahimutang ang rclone.exe human sa decompression, isulod ang cmd sa address bar sa explorer ug pindota ang Enter aron maablihan ang command prompt sa kasamtangan nga dalan.

Ilisan ang mosunod nga mga sugo saClient_ID,Client_secret ug ipatuman ang ▼

rclone authorize "onedrive" "Client_ID" "Client_secret"
  • Usa ka browser ang mo-pop sa sunod, nga maghangyo kanimo sa pag-log in sa imong account aron tugutan kini.

Human sa pagtugot, ang mosunod nga mensahe makita sa command prompt window:

If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth
Log in and authorize rclone for access
Waiting for code...
Got code
Paste the following into your remote machine --->
{"access_token":"xxxxxxxxxxxxxxxxxx","expiry":"2024-05-15T21:18:39.5036298+08:00"}
<---End paste
  • {"access_token":"xxxxxxxxxxxxxxxxxx","expiry":"2024-05-15T21:18:39.5036298+08:00"}Kining tibuok nga sulod (lakip ang mga bracket) mao ang timaan, kopyahon ug i-save.

Ang Rclone nagkonektar sa OneDrive

SSH isulod ang mosunod nga sugo▼

rclone config

Ang mosunod nga impormasyon makita, palihog tan-awa ang mosunod nga mga instruksyon sa pag-operate ▼

  • Hinumdomi:Tungod kay ang RCLONE ma-update matag karon ug unya, kung makita nimo kini nga panudlo, ang mga kapilian sa menu mahimo’g magbag-o gamay, apan ang kinatibuk-ang ideya dili mausab. Ayaw paghunahuna bahin sa pagkopya sa operasyon.
$ rclone config

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 # 输入 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 / 1Fichier
\ (fichier)
2 / Akamai NetStorage
\ (netstorage)
3 / Alias for an existing remote
\ (alias)
4 / Amazon Drive
\ (amazon cloud drive)
5 / Amazon S3 Compliant Storage Providers including AWS, Alibaba, Ceph, Digital Ocean, Dreamhost, IBM COS, Lyve Cloud, Minio, RackCorp, SeaweedFS, and Tencent COS
\ (s3)
6 / Backblaze B2
\ (b2)
7 / Better checksums for other remotes
\ (hasher)
8 / Box
\ (box)
9 / Cache a remote
\ (cache)
10 / Citrix Sharefile
\ (sharefile)
11 / Compress a remote
\ (compress)
12 / Dropbox
\ (dropbox)
13 / Encrypt/Decrypt a remote
\ (crypt)
14 / Enterprise File Fabric
\ (filefabric)
15 / FTP Connection
\ (ftp)
16 / Google Cloud Storage (this is not Google Drive)
\ (google cloud storage)
17 / Google Drive
\ (drive)
18 / Google Photos
\ (google photos)
19 / Hadoop distributed file system
\ (hdfs)
20 / Hubic
\ (hubic)
21 / In memory object storage system.
\ (memory)
22 / Jottacloud
\ (jottacloud)
23 / Koofr, Digi Storage and other Koofr-compatible storage providers
\ (koofr)
24 / Local Disk
\ (local)
25 / Mail.ru Cloud
\ (mailru)
26 / Mega
\ (mega)
27 / Microsoft Azure Blob Storage
\ (azureblob)
28 / Microsoft OneDrive
\ (onedrive)
29 / OpenDrive
\ (opendrive)
30 / OpenStack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
\ (swift)
31 / Pcloud
\ (pcloud)
32 / Put.io
\ (putio)
33 / QingCloud Object Storage
\ (qingstor)
34 / SSH/SFTP Connection
\ (sftp)
35 / Sia Decentralized Cloud
\ (sia)
36 / Storj Decentralized Cloud Storage
\ (storj)
37 / Sugarsync
\ (sugarsync)
38 / Transparently chunk/split large files
\ (chunker)
39 / Union merges the contents of several upstream fs
\ (union)
40 / Uptobox
\ (uptobox)
41 / Webdav
\ (webdav)
42 / Yandex Disk
\ (yandex)
43 / Zoho
\ (zoho)
44 / http Connection
\ (http)
45 / premiumize.me
\ (premiumizeme)
46 / seafile
\ (seafile)
Storage> 28 # 输入28表示选择Microsoft OneDrive
Option client_id.
OAuth Client Id.
Leave blank normally.
Enter a value. Press Enter to leave empty.
client_id> # 输入 Client Id (客户端 ID)
Microsoft App Client Secret
Leave blank normally.
Enter a string value. Press Enter for the default ("").
client_secret> # 输入 Client Secret (客户端密码)
Edit advanced config? (y/n)
y) Yes
n) No
y/n> n # 输入 n
Remote config
Make sure your Redirect URL is set to "http://localhost:53682/" in your custom 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 # 输入 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 (same rclone version recommended) :
rclone authorize "onedrive" "client_id" "client_secret"
Then paste the result below:
result> {"access_token":"XXXXXXXXX","expiry":"2024-05-15T21:18:39.5036298+08:00"} # 输入 token
Choose a number from below, or type in an existing value
1 / OneDrive Personal or Business
\ "onedrive"
2 / Root Sharepoint site
\ "sharepoint"
3 / Type in driveID
\ "driveid"
4 / Type in SiteID
\ "siteid"
5 / Search a Sharepoint site
\ "search"
Your choice> 1 # # 这里询问你要选择的类型,因为你使用的是OneDrive,所以输入1
Found 1 drives, please select the one you want to use:
0: OneDrive (business) id=xxxxxxxxxxxxxx
Chose drive to use:> 0 # 检测到网盘,此处号码是0,所以输入0
Found drive 'root' of type 'business', URL: https:// xxx.sharepoint. com/personal/xxxxxx/Documents
Is that okay?
y) Yes
n) No
y/n> y # 请你确认,如果没有问题,请输入 y

--------------------
[od-e5-api]
type = onedrive
client_id = xxxxxxxxxx
client_secret = xxxxxxxxxxxxxxxx
token = {"access_token":"xxxxxxxxxxxxxxxxxx","expiry":"2024-05-15T21:18:39.5036298+08:00"}
drive_id = xxxxxxxxxxxxxxxxxxxxxxxxx
drive_type = business
--------------------
y) Yes this is OK
e) Edit this remote
d) Delete this remote
y/e/d> y # 最后会显示网盘的配置信息,请确认是否准确无误? 如果没有问题,请输入 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 # 输入 q 退出
  • Sa pagkakaron, ang Rclone malampuson nga konektado sa OneDrive network disk gamit ang self-built API.

Sa higayon nga ma-configure, mahimo nimong gamiton ang mosunodrcloneSugo sa pagtan-aw:

Ilista ang mga direktoryo sa taas nga lebel sa onedrive▼

rclone lsd onedrive:

Ilista ang tanang file sa onedrive▼

rclone ls onedrive:

Kopyaha ang lokal nga direktoryo sa usa ka direktoryo nga ginganlagbackupdirektoryo sa onedrive▼

rclone copy /home/source onedrive:backup

Kopyaha ang Cut Delete Command

Kopyaha ang Rclone configuration file ngadto sa root directory sa onedrive network disk ▼

rclone copy /root/.config/rclone/rclone.conf onedrive:/

kopya sa lokal /home/backup Lakaw ngadto sa backup nga direktoryo diin ang network disk nga ginganlan og onedrive na-configure, ug vice versa ▼

rclone copy --progress /home/backup onedrive:backup
  • pinaagi sa pagdugang niini nga parameter --ignore-existing Ang mga file nga gi-back up sa network disk mahimong ibaliwala, nga katumbas sa incremental backup ▼
rclone copy --ignore-existing /home/backup onedrive:backup

Kopyaha ang lokal nga CWP manual backup file ngadto sa backup nga direktoryo sa network disk nga ginganlan og onedrive, ug vice versa ▼

rclone copy --progress /newbackup/full/manual/accounts/eloha.tar.gz onedrive:cwp-newbackup/full/manual/accounts/

Gikan sa onedrive network disk, kopyaha ang CWP automatic nga naka-iskedyul nga backup file ngadto sa lokal /newbackup Katalogo▼

rclone copy --progress onedrive:cwp-newbackup/full/daily/Friday/accounts/eloha.tar.gz /newbackup/

rclone copy --progress onedrive:cwp-backup2/ /home/backup2/

Gikan sa onedrive network disk, kopyaha ang CWP manual backup file ngadto sa lokal /newbackup/newbackup/full/manual/accounts/ Katalogo▼

rclone copy --progress onedrive:cwp-newbackup/full/manual/accounts/eloha.tar.gz /newbackup/newbackup/full/manual/accounts/

Kopyaha gikan sa network disk sa onedriveVestaCPI-backup ang mga file sa lokal /home/backup Katalogo▼

rclone copy --progress onedrive:backup/admin.2018-04-12_13-10-02.tar /home/backup

Paglihok (Cut) Sugo ▼

rclone move /home/backup onedrive:backup

I-delete ang backup directory sa network disk nga adunay configuration name onedrive▼

rclone delete onedrive:backup

Paghimo og backup nga direktoryo nga nag-configure sa network disk nga ginganlag onedrive ▼

rclone mkdir onedrive:backup

Kopyaha ang ▼

rclone copy

lihok ▼

rclone move

kuhaa ▼

rclone delete

I-sync ▼

rclone sync

Para sa dugang nga mga panudlo sa paggamit sa Rclone command, palihog tan-awa ang Rclone command collection sa ubos▼

Giunsa ang pag-mount sa OneDrive?

Kung kinahanglan nimo nga i-mount sa usa ka lokal nga direktoryo, mahimo nimong i-refer ang among miaging Rclone mounting tutorial▼

Mga Limitasyon sa OneDrive Private API

Bisan pa nga ang mga pribadong API nga hinimo sa kaugalingon makapauswag sa kasinatian sa pag-upload, ang pag-upload mahimong limitado kung gigamit kanunay.

Unsa ang pinakataas nga limitasyon nga threshold alang sa Microsoft OneDrive API?

Wala klaro nga gisulti sa Microsoft kung unsa ang labing taas nga limitasyon nga threshold sa OneDrive API. Ang mosunod mao ang orihinal nga dokumento:

Pinasukad sa paggamit, among giayo ang mga threshold aron ang mga tiggamit makagamit sa labing taas nga kantidad sa mga kapanguhaan nga wala ikompromiso ang kasaligan ug pasundayag.

  • Sama sa imong matag-an gikan sa pagtan-aw sa paghulagway sa ubang mga matang sa mga limitasyon sa API, adunay duha ka limitasyon, total ug frequency.
  • Ang kinatibuk-an mao ang gidaghanon sa mga tawag nga mahimo sa usa ka adlaw, ug ang frequency mao ang gidaghanon sa mga tawag nga mahimo sa matag minuto.
  • Ug sa higayon nga maabot na ang throttling threshold, ang mga pag-upload sa file ma-throttle.
  • Tungod kay ang eksaktong kantidad dili makuha gikan sa opisyal nga dokumentasyon, mahimo ba kini nga eksaktong kantidad nga makuha pinaagi sa aktwal nga pagsulay?
  • negatibo ang tubag.Walay mga lagda nga nakit-an sa aktuwal nga pagsulay, mao nga kini nga limitasyon dinamikong gi-adjust ug nahiuyon sa opisyal nga dokumentasyon.

Unsaon nako paglikay nga mapugngan sa OneDrive API?

Ayaw pag-upload og daghang mga file sa mubo nga panahon, ang gidak-on sa file dili igsapayan, ang yawe mao ang gidaghanon sa mga file.

Mahitungod sa Office 365 E5 awtomatikong pagbag-o:

  • Sumala sa kasinatian sa mga tiggamit nga naggamit sa bersyon sa pagsulay sa developer sa daghang mga tuig, basta gamiton nimo ang self-built nga pribadong API, mahimo nimong mabag-o ang suskrisyon.
  • Sama sa alang sa frequency, walay sumbanan, ug ang labaw nga mas maayo.
  • Ang tinuyo nga pag-brush sa API mahimong dili takus sa pagkawala, ilabi na ang paggamit sa GitHub Actions, tungod kay ang server mao ang Microsoft Azure, daghan kaayo nga mga tawo ang naggamit sa susama nga mga pamaagi sa pag-brush sa API nga walay kahulogan, gusto sa Microsoft Azure nga mailhan kini nga sayon.

Paglaum Chen Weiliang Blog ( https://www.chenweiliang.com/ ) mipakigbahin "Ang Rclone hinay nga magkonektar sa Onedrive?Dump upload speed limit? I-configure ang API acceleration" aron matabangan ka.

Welcome sa pagpaambit sa link niini nga artikulo:https://www.chenweiliang.com/cwl-27906.html

Malipayon nga pag-abut sa channel sa Telegram sa blog ni Chen Weiliang aron makuha ang labing bag-ong mga update!

🔔 Mahimong una nga makakuha sa bililhon nga "ChatGPT Content Marketing AI Tool Usage Guide" sa direktoryo sa taas nga channel! 🌟
📚 Kini nga giya adunay daghang kantidad, 🌟Kini usa ka talagsaon nga oportunidad, ayaw palabya ​​kini! ⏰⌛💨
Share ug like kung ganahan ka!
Ang imong pagpaambit ug pag-like mao ang among padayon nga kadasig!

 

发表 评论

Ang imong email address dili mapatik. Gigamit ang mga kinahanglanon nga uma * Label

scroll sa ibabaw