An bhfuil Rclone mall chun nascadh le Onedrive?Dumpáil teorainn luais uaslódála? Cumraigh luasghéarú API

In úsáid clón Agus comhaid á n-aistriú go OneDrive, seans go mbeidh fadhbanna agat ar nós luas mall agus dínascadh...

Cén fáth a bhfuil Rclone mall chun ceangal le Onedrive?

Is é an bhunchúis ná teorannú API OneDrive a spreagadh, agus úsáideann iliomad daoine an API réamhshocraithe Rclone ionsuite ag an am céanna, agus mar sin tá na fadhbanna seo ag éirí níos soiléire agus níos mó ...

An bhfuil Rclone mall chun nascadh le Onedrive?Dumpáil teorainn luais uaslódála? Cumraigh luasghéarú API

Is féidir le húsáid an API príobháideach féin-thógtha chun ceangal le OneDrive na cásanna seo a fheabhsú go mór, agus le haghaidh leagan trialach forbróra Office 365 E5 trí mhí, déanfaidh úsáid ócáideach Rclone an táille a athnuachan go huathoibríoch, seachas an API a scuabadh d'aon ghnó, rud atá níos mó. slán agus cobhsaí.

Ina theannta sin, is féidir le cuntais eile agus feidhmchláir eile APIanna féin-thógtha a úsáid.

Más API féintógtha Google Drive é, féach le do thoil don rang teagaisc seo ▼

Rclone connect Onedrive tástála luais

Is é an chéad cheann ná an luas a bhaineann le API réamhshocraithe Rclone a úsáid chun ceangal le Onedrive▼ a thástáil

Rclone ceangailte le tástáil luais Onedrive Is é an chéad cheann an tríú grianghraf de netizens a thástáil luas úsáid API réamhshocraithe Rclone chun ceangal le Onedrive

Is tástáil é an dara ceann ag netizens chun an API Microsoft a chuir siad isteach air a úsáid chun ceangal le Onedrive ▼

Is é an dara ceann an ceathrú grianghraf de netizens a thástáil an luas nascadh le Onedrive ag baint úsáide as an API Microsoft ar chuir siad isteach air

  • Is féidir a fheiceáil go soiléir go bhfuil an difríocht luais níos mó ná 10 n-uaire.

Conas API diosca líonra Microsoft Onedrive a chruthú?

Conas ID Cliant agus rún Cliant a fháil in Ionad Bainistíochta Microsoft Azure, cliceáil le do thoil ar an nasc thíos chun a fheiceáil conas API diosca líonra Microsoft Onedrive a chruthú ▼

Faigheann Rclone comhartha

Íoslódáil Rclone ar do ríomhaire áitiúil ▼

Tóg Windows mar shampla, téigh go dtí an fillteán ina bhfuil rclone.exe suite tar éis dí-chomhbhrúite, cuir isteach cmd i mbarra seoltaí an taiscéalaí agus brúigh Enter chun an t-ordú a oscailt go pras sa chosán reatha.

Ionadaigh sa ordú seo a leanasClient_ID,Client_secret agus ▼ a fhorghníomhú

rclone authorize "onedrive" "Client_ID" "Client_secret"
  • Feicfidh tú brabhsálaí ina dhiaidh sin, ag iarraidh ort logáil isteach i do chuntas chun é a údarú.

Tar éis údarú, feictear an teachtaireacht seo a leanas i bhfuinneog an leid ordú:

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"}Is é an t-ábhar iomlán seo (lena n-áirítear na lúibíní) an comhartha, a chóipeáil agus a shábháil.

Rclone ceangal le OneDrive

SSH cuir isteach an t-ordú seo a leanas ▼

rclone config

Beidh an fhaisnéis seo a leanas le feiceáil, féach le do thoil na treoracha seo a leanas chun oibriú ▼

  • rabhadh:Toisc go ndéanfar RCLONE a nuashonrú ó am go chéile, nuair a fheiceann tú an teagasc seo, d'fhéadfadh go n-athróidh na roghanna roghchláir beagán, ach ní athróidh an smaoineamh ginearálta. Ná smaoinigh ar an oibríocht a chóipeáil.
$ 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 退出
  • Go dtí seo, d'éirigh le Rclone ceangal leis an diosca líonra OneDrive ag baint úsáide as an API féin-tógtha.

Nuair a bheidh tú cumraithe, is féidir leat an méid seo a leanas a úsáidrcloneOrdú chun féachaint ar:

Liostaigh na heolairí ag an leibhéal is airde de onedrive▼

rclone lsd onedrive:

Liostaigh gach comhad in onedrive▼

rclone ls onedrive:

Cóipeáil an eolaire áitiúil chuig eolaire ainmnithebackupeolaire onedrive ▼

rclone copy /home/source onedrive:backup

Cóipeáil Gearr Scrios Ordú

Cóipeáil an comhad cumraíochta Rclone chuig an eolaire fréimhe den diosca líonra onedrive ▼

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

cóip áitiúil /home/backup Téigh chuig an eolaire cúltaca ina bhfuil an diosca líonra darb ainm onedrive cumraithe, agus vice versa ▼

rclone copy --progress /home/backup onedrive:backup
  • tríd an bparaiméadar seo a chur leis --ignore-existing Is féidir neamhaird a dhéanamh ar chomhaid a bhfuil cúltaca déanta acu ar an diosca líonra, atá comhionann le cúltaca incriminteach ▼
rclone copy --ignore-existing /home/backup onedrive:backup

Cóipeáil an comhad cúltaca láimhe CWP áitiúil chuig eolaire cúltaca an diosca líonra darb ainm onedrive, agus vice versa ▼

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

Ón diosca líonra onedrive, cóipeáil an comhad cúltaca uathoibríoch sceidealaithe CWP go dtí an logánta /newbackup Catalóg▼

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

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

Ón diosca líonra onedrive, cóipeáil an comhad cúltaca láimhe CWP chuig an logánta /newbackup/newbackup/full/manual/accounts/ Catalóg ▼

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

Cóipeáil ó dhiosca líonra onedriveVestaCPComhaid chúltaca go logánta /home/backup Catalóg▼

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

Bog (Gearr) Ordú ▼

rclone move /home/backup onedrive:backup

Scrios eolaire cúltaca an diosca líonra leis an ainm cumraíochta onedrive▼

rclone delete onedrive:backup

Cruthaigh eolaire cúltaca a chumraíonn diosca líonra darb ainm onedrive ▼

rclone mkdir onedrive:backup

Cóipeáil ▼

rclone copy

bogadh ▼

rclone move

scrios ▼

rclone delete

Sioncrónaigh ▼

rclone sync

Le haghaidh tuilleadh ranganna teagaisc úsáide ordú Rclone, féach le do thoil do bhailiúchán orduithe Rclone thíos▼

Conas OneDrive a shuiteáil?

Más gá duit gléasadh chuig eolaire áitiúil, is féidir leat tagairt a dhéanamh dár rang teagaisc gléasta Rclone roimhe seo▼

Teorainneacha ar OneDrive Private API

Cé gur féidir le APIanna príobháideacha féin-thógtha an t-eispéireas uaslódála a fheabhsú, d’fhéadfadh go mbeadh teorainn leis an uaslódáil má úsáidtear é rómhinic.

Cad é an uasteorainn uasteorainn don API Microsoft OneDrive?

Níl sé ráite go soiléir ag Microsoft cad é uasteorainn uasteorann an API OneDrive. Seo a leanas an doiciméad bunaidh:

Bunaithe ar úsáid, déanaimid mionchoigeartú ar na tairseacha ionas gur féidir le húsáideoirí an t-uasmhéid acmhainní a úsáid gan cur isteach ar iontaofacht agus feidhmíocht.

  • Mar is féidir leat buille faoi thuairim ó bhreathnú ar an gcur síos ar chineálacha eile de theorainneacha API, tá dhá theorainn ann, iomlán agus minicíocht.
  • Is é an t-iomlán líon na nglaonna is féidir a dhéanamh in aghaidh an lae, agus is é an minicíocht líon na nglaonna is féidir a dhéanamh in aghaidh an nóiméid.
  • Agus nuair a shroichtear an tairseach scátála, déantar uaslódálacha comhaid a bhrú chun cinn.
  • Ós rud é nach féidir an luach beacht a fháil ó na doiciméid oifigiúla, an féidir an luach cruinn seo a fháil trí thástáil iarbhír?
  • tá an freagra diúltach.Níor aimsíodh aon rialacha sa tástáil iarbhír, mar sin déantar an teorainn seo a choigeartú go dinimiciúil agus cloíonn sí leis na doiciméid oifigiúla.

Conas is féidir liom srian a chur orm leis an OneDrive API?

Ná uaslódáil an iomarca comhad i mbeagán ama, is cuma cén méid comhaid, is é an eochair ná líon na gcomhad.

Maidir le hathnuachan uathoibríoch Office 365 E5:

  • De réir taithí na n-úsáideoirí a úsáideann leagan trialach an fhorbróra le blianta fada anuas, chomh fada agus a úsáideann tú an API príobháideach féin-thógtha, is féidir leat an síntiús a athnuachan.
  • Maidir le minicíocht, níl aon chaighdeán ann, agus is amhlaidh is fearr.
  • B'fhéidir nach fiú an caillteanas a scuabadh d'aon ghnó an API, go háirithe ag baint úsáide as Gníomhartha GitHub, toisc go bhfuil an freastalaí Microsoft Azure, úsáideann an oiread sin daoine modhanna den chineál céanna chun an API a scuabadh gan brí, agus ba mhaith le Microsoft Azure é a aithint go héasca.

Tá súil agam Blag Chen Weiliang ( https://www.chenweiliang.com/ ) shared” Tá Rclone mall chun ceangal le Onedrive?Dumpáil teorainn luais uaslódála? Cumraigh luasghéarú API" chun cabhrú leat.

Fáilte romhat nasc an ailt seo a roinnt:https://www.chenweiliang.com/cwl-27906.html

Fáilte chuig cainéal Telegram de bhlag Chen Weiliang chun na nuashonruithe is déanaí a fháil!

🔔 Bí ar an gcéad duine a gheobhaidh an "Treoir Úsáide Uirlisí AI Margaíochta Ábhair ChatGPT" luachmhar san eolaire barr na gcainéal! 🌟
📚 Tá luach ollmhór sa treoir seo, 🌟 Seo deis annamh, ná caill é! ⏰⌛💨
Roinnigí agus más maith libh!
Is iad do chomhroinnt agus do thaitin ár spreagadh leanúnach!

 

发表 评论

Ní fhoilseofar do sheoladh ríomhphoist. Úsáidtear réimsí riachtanacha * Lipéad

scrollaigh go dtí an barr