AI智能
改变未来

Windows/Mac系统下挂载Google Drive网盘为本地硬盘使用

你好,请问windows系统可以用rclone挂载google drive吗?

$ rclone version
rclone v1.48.0

$ rclone config
No remotes found – make a new one
n) New remote
s) Set configuration password
q) Quit config
n/s/q> n
name> gdrive
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 / A stackable unification remote, which can appear to merge the contents of several remotes
“union”
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 / Dropbox
“dropbox”
9 / Encrypt/Decrypt a remote
“crypt”
10 / FTP Connection
“ftp”
11 / Google Cloud Storage (this is not Google Drive)
“google cloud storage”
12 / Google Drive
“drive”
13 / Hubic
“hubic”
14 / JottaCloud
“jottacloud”
15 / Koofr
“koofr”
16 / Local Disk
“local”
17 / Mega
“mega”
18 / Microsoft Azure Blob Storage
“azureblob”
19 / Microsoft OneDrive
“onedrive”
20 / OpenDrive
“opendrive”
21 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
“swift”
22 / Pcloud
“pcloud”
23 / QingCloud Object Storage
“qingstor”
24 / SSH/SFTP Connection
“sftp”
25 / Webdav
“webdav”
26 / Yandex Disk
“yandex”
27 / http Connection
“http”
Storage> 12
See help for drive backend at: https://rclone.org/drive/

Google Application Client Id
Setting your own is recommended.
See https://rclone.org/drive/#making-your-own-client-id for how to create your own.
If you leave this blank, it will use an internal key which is low performance.
Enter a string value. Press Enter for the default (“”).
client_id>
Google Application Client Secret
Setting your own is recommended.
Enter a string value. Press Enter for the default (“”).
client_secret>
Scope that rclone should use when requesting access from drive.
Enter a string value. Press Enter for the default (“”).
Choose a number from below, or type in your own value
1 / Full access all files, excluding Application Data Folder.
“drive”
2 / Read-only access to file metadata and file contents.
“drive.readonly”
/ Access to files created by rclone only.
3 | These are visible in the drive website.
| File authorization is revoked when the user deauthorizes the app.
“drive.file”
/ Allows read and write access to the Application Data folder.
4 | This is not visible in the drive website.
“drive.appfolder”
/ Allows read-only access to file metadata but
5 | does not allow any access to read or download file content.
“drive.metadata.readonly”
scope> 1
ID of the root folder
Leave blank normally.
Fill in to access “Computers” folders. (see docs).
Enter a string value. Press Enter for the default (“”).
root_folder_id>
Service Account Credentials JSON file path
Leave blank normally.
Needed only if you want use SA instead of interactive login.
Enter a string value. Press Enter for the default (“”).
service_account_file>
Edit advanced config? (y/n)
y) Yes
n) No
y/n> n
Remote config
Use auto config?

n) No
y/n> n
If your browser doesn’t open automatically go to the following link: https://accounts.google.com/o/oauth2/auth?access_type=offline&client_id=202264815644.apps.googleusercontent.com&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&response_type=code&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive&state=4dafcace2a9d31385c85c06100b2bcd8
Log in and authorize rclone for access
Enter verification code> 4/pAFu5SDmM1U4lql2OIqbOJ60IF6h2gyDq_bsiWG6bDlSWIvI1dG9GYg

下面是选自动配置
Use auto config?

n) No
y/n> y
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
2019/08/20 13:42:57 Failed to configure token: failed to get token: Post https://oauth2.googleapis.com/token: read tcp 192.168.199.134:1772->172.217.160.106:443: wsarecv: An existing connection was forcibly closed by the remote host.

赞(0) 打赏
未经允许不得转载:爱站程序员基地 » Windows/Mac系统下挂载Google Drive网盘为本地硬盘使用