He puhoi a Rclone ki te hono atu ki Onedrive?Tukua te tepe tere tukuake? Whirihorahia te whakaterenga API

Kei te whakamahia Rclone Ina whakawhiti ana i nga konae ki OneDrive, ka raru pea koe penei i te tere puhoi me te momotu...

He aha i puhoi ai a Rclone ki te hono atu ki Onedrive?

Ko te take matua ko te whakaoho i te herenga o te OneDrive API, ka whakamahia te Rclone taunoa i roto i te API e te tini o nga tangata i te wa kotahi, no reira kei te tino kitea enei raruraru...

He puhoi a Rclone ki te hono atu ki Onedrive?Tukua te tepe tere tukuake? Whirihorahia te whakaterenga API

Ma te whakamahi i te API motuhake i hangaia e ia ake ki te hono atu ki OneDrive ka taea te whakapai ake i enei ahuatanga, a, mo te toru marama o te putanga whakamatautau kaiwhakawhanake Office 365 E5, ko te whakamahi i etahi wa o Rclone ka whakahou aunoa i te utu, kaua ki te parai i te API, he nui ake. haumaru me te pumau.

I tua atu, ka taea hoki te whakamahi i nga API i hangaia e etahi atu kaute me etahi atu tono.

Mena he API i hangaia e Google Drive, tirohia tenei akoranga ▼

Rclone hono Onedrive te whakamatautau tere

Ko te mea o mua he whakamatautau i te tere o te whakamahi i te API taunoa a Rclone ki te hono atu ki Onedrive▼

Hononga Rclone Whakamatau tere Onedrive Ko mua te whakaahua tuatoru o nga netizen e whakamatautau ana i te tere o te whakamahi i te API taunoa a Rclone ki te hono atu ki Onedrive

Ko te mea whakamutunga he whakamatautau na te hunga netizens ki te whakamahi i te API Microsoft i tonohia e ratou kia hono atu ki Onedrive ▼

Ko te mea whakamutunga ko te tuawha o nga whakaahua o nga netizen e whakamatautau ana i te tere o te hono ki Onedrive ma te whakamahi i te Microsoft API i tonohia e ratou.

  • Ka tino kitea ko te rereketanga tere he neke atu i te 10 nga wa.

Me pehea te hanga API kōpae whatunga Microsoft Onedrive?

Me pehea te tiki TT Kiritaki me te Kiritaki ngaro i roto i te Microsoft Azure Management Center, paatohia te hono i raro nei kia kite me pehea te hanga i te API kōpae whatunga Microsoft Onedrive ▼

Ka whiwhi tohu a Rclone

Tikiake Rclone ki to rorohiko ▼

Tangohia a Windows hei tauira, haere ki te kōpaki kei reira te rclone.exe i muri i te whakahekenga, tomo cmd ki te pae wāhitau o te kaihōpara ka pehi i te Enter ki te whakatuwhera i te whakahau whakahau i te ara o naianei.

Whakakapihia te whakahau e whai ake neiClient_ID,Client_secret ka mahia ▼

rclone authorize "onedrive" "Client_ID" "Client_secret"
  • Ka puta ake he kaitirotiro i muri mai, ka tono kia takiuru koe ki to putea kia whakamanahia.

I muri i te whakamanatanga, ka puta te karere e whai ake nei i te matapihi whakahau whakahau:

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"}Ko tenei ihirangi katoa (tae atu ki nga taiapa) ko te tohu, kape me te penapena.

Rclone hono ki OneDrive

SSH tomo te whakahau e whai ake nei▼

rclone config

Ka puta nga korero e whai ake nei, tirohia nga tohutohu e whai ake nei hei whakahaere ▼

  • Tuhipoka:Na te mea ka whakahouhia te RCLONE i ia wa, ina kite koe i tenei akoranga, ka rereke pea nga whiringa tahua, engari kaore e rereke te whakaaro whanui. Kaua e whakaaro ki te kape i te mahi.
$ 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 退出
  • I tenei wa, kua pai te hono atu a Rclone ki te kōpae whatunga OneDrive ma te whakamahi i te API hanga-whaiaro.

Kia whirihorahia, ka taea e koe te whakamahi i nga mea e whai ake neircloneTono kia tiro:

Whakarārangihia ngā whaiaronga ki te taumata o runga o onedrive▼

rclone lsd onedrive:

Whakarārangihia ngā kōnae katoa ki te onedrive▼

rclone ls onedrive:

Tāruatia te whaiaronga paetata ki tētahi whaiaronga kua whakaingoatiabackupwhaiaronga onedrive▼

rclone copy /home/source onedrive:backup

Tārua Tapahia te Whakahaua Mukua

Tāruatia te kōnae whirihoranga Rclone ki te whaiaronga pakiaka o te kōpae whatunga onedrive ▼

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

kape rohe /home/backup Haere ki te whaiaronga taapiri i whirihorahia ai te kōpae whatunga ko onedrive, me te ▼

rclone copy --progress /home/backup onedrive:backup
  • mā te tāpiri i tēnei tawhā --ignore-existing Ko nga konae kua tautokona ki te kōpae whatunga ka taea te waiho, he rite ki te taapiri taapiri ▼
rclone copy --ignore-existing /home/backup onedrive:backup

Tāruatia te kōnae pūrua ā-ringa CWP ā-rohe ki te whaiaronga pūrua o te kōpae whatunga kua whakaingoatia ko onedrive, me tērā anō ▼

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

Mai i te kōpae whatunga onedrive, kape i te CWP te konae taapiri kua whakaritea aunoa ki te rohe /newbackup Putumōhio▼

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

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

Mai i te kōpae whatunga onedrive, kapehia te konae tārua a CWP ki te rohe /newbackup/newbackup/full/manual/accounts/ Putumōhio▼

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

Tārua mai i te kōpae whatunga a onedriveVestaCPPūrua kōnae ki te rohe /home/backup Putumōhio▼

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

Nuku (Kuti) Tonoa ▼

rclone move /home/backup onedrive:backup

Mukua te whaiaronga tārua o te kōpae whatunga me te ingoa whirihoranga onedrive▼

rclone delete onedrive:backup

Waihangahia he whaiaronga taapiri hei whirihora i tetahi kōpae whatunga ko onedrive ▼

rclone mkdir onedrive:backup

Tārua ▼

rclone copy

neke ▼

rclone move

mukua ▼

rclone delete

Tukutahi ▼

rclone sync

Mo etahi atu akoranga whakamahi whakahau Rclone, tirohia koa te kohinga whakahau Rclone kei raro▼

Me pehea te whakairi i te OneDrive?

Mena ka hiahia koe ki te whakauru ki tetahi raarangi rohe, ka taea e koe te korero ki ta maatau akoranga whakapuru Rclone o mua▼

Nga here o OneDrive Private API

Ahakoa ka taea e nga API motuhake hanga ake te whakapai ake i te wheako tukunga ake, ka iti pea te tukunga mena ka whakamahia auau.

He aha te paepae tepe morahi mo te API Microsoft OneDrive?

Kare ano a Microsoft i whakaatu marama he aha te paepae tepe morahi o te OneDrive API. Ko te tuhinga taketake e whai ake nei:

I runga i te whakamahinga, ka whakatikahia e matou nga paepae kia taea ai e nga kaiwhakamahi te whakamahi i te nui rawa o nga rauemi me te kore e whakararu i te pono me te mahi.

  • Ka taea e koe te whakaaro mai i te titiro ki te whakaahuatanga o etahi atu momo rohe API, e rua nga rohe, te tapeke me te auau.
  • Ko te tapeke ko te maha o nga waea ka taea te mahi i te ra, ko te auau ko te maha o nga waea ka taea te waea ia meneti.
  • A, ka tae ki te paepae whakamarumaru, ka maataki nga tukunga kōnae.
  • I te mea kaore e taea te whiwhi i te uara tika mai i nga tuhinga whaimana, ka taea ranei tenei uara tika ma te whakamatautau tonu?
  • he kino te whakautu.Karekau he ture i kitea i roto i te whakamatautau tuturu, no reira ka whakanekehia tenei tepe me te rite ki nga tuhinga whaimana.

Me pehea e karohia ai e te OneDrive API?

Kaua e tukuna he maha o nga konae i roto i te wa poto, kaore he mea nui te rahi o te konae, ko te mea nui ko te maha o nga konae.

Mo te whakahou aunoa a Office 365 E5:

  • E ai ki nga wheako o nga kaiwhakamahi e whakamahi ana i te putanga whakamatautau kaiwhakawhanake mo nga tau maha, mena ka whakamahi koe i te API motuhake i hangaia e koe, ka taea e koe te whakahou i te ohaurunga.
  • Mo te auau, kaore he paerewa, ka nui ake te pai ake.
  • Ko te parai i te API kaore pea he utu, ina koa ko te whakamahi i nga Mahi a GitHub, na te mea ko te tūmau ko Microsoft Azure, he maha nga tangata e whakamahi ana i nga tikanga rite ki te parai i te API kaore he tikanga, me te hiahia a Microsoft Azure ki te tautuhi ngawari.

Hope Chen Weiliang Blog ( https://www.chenweiliang.com/ ) shared "He puhoi a Rclone ki te hono atu ki Onedrive?Tukua te tepe tere tukuake? Whirihorahia te whakaterenga API" hei awhina i a koe.

Nau mai ki te tohatoha i te hono o tenei tuhinga:https://www.chenweiliang.com/cwl-27906.html

Nau mai ki te hongere Telegram o te blog a Chen Weiliang ki te tiki i nga korero hou!

🔔 Ko koe te tuatahi ki te tiki i te "ChatGPT Content Marketing AI Tool Usage Guide" i roto i te raarangi o runga hongere! 🌟
📚 He uara nui tenei aratohu, 🌟He waahi onge tenei, kaua e ngaro! ⏰⌛💨
Tohaina me te pai ki te pai koe!
Ko to tiritiri me o hiahia ko to maatau hihiri tonu!

 

发表 评论

Kaore e tukuna to wahitau imeera. 必填 项 已 用 * Tapanga

panuku ki runga