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> 23 #这里OneDrive是23,不同的rclone版本数字可能不同
client_id 和 client_scret 直接留空
1 2 3 4
Microsoft App Client Id Leave blank normally. Enter a string value. Press Enter for the default (""). client_id> # 无需输入,直接回车
1 2 3 4
Microsoft App Client Secret Leave blank normally. Enter a string value. Press Enter for the default (""). client_secret> # 无需输入,直接回车
不使用高级配置
1 2 3 4
Edit advanced config? (y/n) y) Yes n) No (default) y/n> n # 不使用,输入n
不使用远程配置
1 2 3 4 5 6 7
Remote config 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> n # 不使用,输入n
输入授权密钥
1 2 3 4 5
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" Then paste the result below: result> # 这里粘入前面获取的授权密钥
选择类型为 onedrive
1 2 3 4 5 6 7 8 9 10 11 12
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 2 3
Found 1 drives, please select the one you want to use: 0: (personal) id=xxxxxxxxxxxx Chose drive to use:> 0 # 这里只有个人版,输入0
确认并退出配置
1 2 3 4 5
Found drive 'root' of type 'personal', URL: https://onedrive.live.com/?cid=xxxxxxxxxxxx Is that okay? y) Yes (default) n) No y/n> y # 确认选择
-------------------- [onedrive-chuqidecha] type = onedrive token = {"access_token":"xxxxxxxxxxxxxxxx"} drive_id = xxxxxxxxxxxxx drive_type = personal -------------------- y) Yes this is OK (default) e) Edit this remote d) Delete this remote y/e/d> y # 如果配置没问题,继续确认 Current remotes:
Name Type ==== ==== onedrive-yuanzheng 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 # 退出配置