C:\Users\83423>rclone config // 第一步在终端输入 rclone config Current remotes:
Name Type ==== ====
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_E5 //第三步 输入一个英文名称 ,中间也不要有空格 Type of storage to configure. Enter a string value. Press Enter for the default (""). Choose a number from below, or typein your own value 1 / 1Fichier \ "fichier" 2 / Alias for an existing remote \ "alias" 3 / Amazon Drive \ "amazon cloud drive" 4 / Amazon S3 Compliant Storage Providers including AWS, Alibaba, Ceph, Digital Ocean, Dreamhost, IBM COS, Minio, SeaweedFS, and Tencent COS \ "s3" 5 / Backblaze B2 \ "b2" 6 / Box \ "box" 7 / Cache a remote \ "cache" 8 / Citrix Sharefile \ "sharefile" 9 / Compress a remote \ "compress" 10 / Dropbox \ "dropbox" 11 / Encrypt/Decrypt a remote \ "crypt" 12 / Enterprise File Fabric \ "filefabric" 13 / FTP Connection \ "ftp" 14 / Google Cloud Storage (this is not Google Drive) \ "google cloud storage" 15 / Google Drive \ "drive" 16 / Google Photos \ "google photos" 17 / Hadoop distributed file system \ "hdfs" 18 / Hubic \ "hubic" 19 / In memory object storage system. \ "memory" 20 / Jottacloud \ "jottacloud" 21 / Koofr \ "koofr" 22 / Local Disk \ "local" 23 / Mail.ru Cloud \ "mailru" 24 / Mega \ "mega" 25 / Microsoft Azure Blob Storage \ "azureblob" 26 / Microsoft OneDrive \ "onedrive" 27 / OpenDrive \ "opendrive" 28 / OpenStack Swift (Rackspace Cloud Files, Memset Memstore, OVH) \ "swift" 29 / Pcloud \ "pcloud" 30 / Put.io \ "putio" 31 / QingCloud Object Storage \ "qingstor" 32 / SSH/SFTP Connection \ "sftp" 33 / Sugarsync \ "sugarsync" 34 / Tardigrade Decentralized Cloud Storage \ "tardigrade" 35 / Transparently chunk/split large files \ "chunker" 36 / Union merges the contents of several upstream fs \ "union" 37 / Uptobox \ "uptobox" 38 / Webdav \ "webdav" 39 / Yandex Disk \ "yandex" 40 / Zoho \ "zoho" 41 / http Connection \ "http" 42 / premiumize.me \ "premiumizeme" 43 / seafile \ "seafile" Storage> 26 //第四步 输入要配置的网盘类型 因为我们要配置Microsoft OneDrive 因此输入26(随着版本的升级,你的不一定是26)
OAuth Client Id Leave blank normally. Enter a string value. Press Enter for the default (""). client_id> //第五步 直接回车
OAuth Client Secret Leave blank normally. Enter a string value. Press Enter for the default (""). client_secret> //第六步 直接回车
Choose national cloud region for OneDrive. Enter a string value. Press Enter for the default ("global"). Choose a number from below, or typein your own value 1 / Microsoft Cloud Global \ "global" 2 / Microsoft Cloud for US Government \ "us" 3 / Microsoft Cloud Germany \ "de" 4 / Azure and Office 365 operated by 21Vianet in China \ "cn" region> 1 //第七步 输入1
Edit advanced config? y) Yes n) No (default) y/n> n //第八步 输入n 不进行高级配置
Use auto config? * Say Y if not sure * Say N if you are working on a remote or headless machine
y) Yes (default) n) No y/n> y //第九步 输入y 使用自动配置授权
//输入y后会打开默认浏览器 登录Microsoft账号后 选择 是 即可
If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth?state=sUuYaGWtxruA81JiCokJGg Log in and authorize rclone for access Waiting for code... Got code 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 //第十步 输入1 因为现在我配置的是 OneDrive Personal or Business 类型的网盘 Found 1 drives, please select the one you want to use: 0: OneDrive (business) id=b!qDQvcsZUTU-8eoYyKmtyyP1Jc0D8urZLlkATnfH1nWdJ1kkbrLsvQZLzVUTpeTrc Chose drive to use:> 0 //第十一步 输入0 Found drive 'root' of type 'business', URL: https://pmjs-my.sharepoint.com/personal/wld_365_w/Documents Is that okay? y) Yes (default) n) No y/n> y //第十二步 输入y -------------------- [OneDrive_Edu] type = onedrive token = {"access_token":"eyJ0eXAiOiV1QiLCJub25jZSI6Im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02-10T11:32:10.852646+08:00"} drive_id = b!qDvcsZUTU8eoYyKmtyyP1Jc0D8urZLlkTnH1nWdJ1kbrLsvQZLzVUTpeTrc drive_type = business -------------------- y) Yes this is OK (default) e) Edit this remote d) Delete this remote y/e/d>y //第十三步 输入y
此时,就会出现刚刚配置好的网盘名称了
1 2 3 4 5
Current remotes:
Name Type ==== ==== OneDrive_E5 onedrive
1 2 3 4 5 6 7 8
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退出配置即可