Microsoft App Client Id Leave blank normally. Enter a string value. Press Enter for the default (""). client_id> Microsoft App Client Secret Leave blank normally. Enter a string value. Press Enter for the default (""). client_secret>
是否要編輯進階配置,這邊輸入n
1 2 3 4
Edit advanced config? (y/n) y) Yes n) No y/n> n
是否使用自動配置,這邊如果是是用圖形界面的話可以輸入y,使用文字界面的話就輸入n手動提供權限
1 2 3 4 5 6
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> y
Choose a number from below, or typein 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=9b42f86057109d0a Chose drive to use:> 0
之後會看到以下文字,輸入y在按Enter繼續
1 2 3 4 5
Found drive 'root' of type'personal', URL: https://onedrive.live.com/?cid=9b42f86057109d0a Is that okay? y) Yes n) No y/n> y
確認設定是否正確(token請勿提供給他人),正確請輸入y
1 2 3 4 5 6 7 8 9 10 11
-------------------- [OneDrive] type = onedrive token = {"access_token":"EwCAA8l6BAAURSN/FHlDW5xN7VtKKzxfQSG7KP8xH","expiry":"2019-04-16T06:15:59.363270812+08:00"} drive_id = 9b42f86057109d0a drive_type = personal -------------------- y) Yes this is OK e) Edit this remote d) Delete this remote y/e/d> y
最後輸入q離開rclone設定
1 2 3 4 5 6 7 8 9 10 11 12 13 14
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
掛載OneDrive目錄
建議在家目錄中建立一個OneDrive資料家
1
mkdir OneDrive
要使用Rclone掛載Microsoft OneDrive,請使用以下命令:
1
rclone --vfs-cache-mode writes mount OneDrive: ~/OneDrive