Hi bác
Mình vừa triển khai trên Windows 10 ngon
Linux chơi sau nhé
1) Tải
https://downloads.rclone.org/v1.52.2/rclone-v1.52.2-windows-amd64.zip về máy
2) Giải nén ra 1 folder
3) Mở cmd tại folder có chứa rclone.exe
4) Chạy rclone.exe
5) C:\Users\xxx\App_P1\rclone>rclone config
2020/06/28 21:05:18 NOTICE: Config file "C:\\Users\\thanh\\.config\\rclone\\rclone.conf" not found - using defaults
No remotes found - make a new one
n) New remote
s) Set configuration password
q) Quit config
n/s/q> chọn n
name> chọn theo mình muốn, ví dụ sgdrive
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
chọn 13 (là google drive)
client_id> chọn Enter ("")
client_secret> cũng Enter
scope> mình chọn 1 (read write)
root_folder_id>cũng Enter
Edit advanced config? (y/n)
y) Yes
n) No (default)
y/n> n
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
Please go to the following link:
https://accounts.google.com/o/oauth2/auth?access_type=offline&client_id=202264815644.apps.googleusercontent.com&redirect_uri=urn:ietf:wgauth:2.0ob&response_type=code&scope=https://www.googleapis.com/auth/drive&state=xxxxxxxxxxxxxx_-A
Log in and authorize rclone for access
Chọn nguyên bộ đỏ, dán sang trình duyệt
Please copy this code, switch to your application and paste it there: xxxxxxxxxx, bê nguyên chỗ xxxxx dán xuống
Enter verification code>xxxxxxxxxx
Configure this as a team drive?
y) Yes
n) No (default)
y/n> chọn y (có nhé)
Fetching team drive list...
Choose a number from below, or type in your own value
1 / Big_Drive
\ "0AFBQtdxxyxyxyxyk9PVA"
Enter a Team Drive ID> của mình có 1 shares drive thôi, chọn 1
---
kết quả
--------------------
[bgdrive]
type = drive
scope = drive
token = {"access_token":"ya29.a0xxxxxxxxxxxxxxxxxxTkw0t-CbCxNXH7KbNUrNhDAODpvJPsGNT_wMBi8I9_LM3SR_KuwM9fltggZvVAKIKPP5dw44k0v_N73hxFLO8QyYuncXfR1UnxxxxxxxxxxxxxxxxxxxxxxxxTk8FZ2Hg","token_type":"Bearer","refresh_token":"1//0ecJmrlvWd9jTCgYIARAAGA4SNwF-L9IrG-RCOukEYggY83q4ASE_xxxxxxxxxxKVKs3MH4vwrA","expiry":"2020-06-28T22:07:59.9164529+07:00"}
team_drive = 0AFBQtdTmNNE3Uk9PVA
--------------------
y) Yes this is OK (default)
e) Edit this remote
d) Delete this remote
y/e/d> y
Current remotes:
Name Type
==== ====
bgdrive drive
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> chọn q
Xong vụ config.
Trên Win cài thêm
WinFsp 2020.1
https://github.com/billziss-gh/winfsp/releases/download/v1.7/winfsp-1.7.20172.msi
Cài xong Winfps thì mount Share drive vào ổ còn trống, của mình chọn ổ G:
Từ dòng lệnh, gõ tiếp
C:\Users\xxx\App_P1\rclone>rclone mount sgdrive: G:
Tân hưởng thành quả thôi
Phà ôi, ổ gì mà 1PB?
Thử up 5.58M/s
Down ~10 MB/s , quá ngon