Name Type ==== ==== gd drive gd2 drive gd3 drive my 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> n #输入n 新建一个remote name> test #输入自己想要的名字 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 / A stackable unification remote, which can appear to merge the contents of several remotes \ "union" 2 / Alias for a 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 / Local Disk \ "local" 16 / Mega \ "mega" 17 / Microsoft Azure Blob Storage \ "azureblob" 18 / Microsoft OneDrive \ "onedrive" 19 / OpenDrive \ "opendrive" 20 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH) \ "swift" 21 / Pcloud \ "pcloud" 22 / QingCloud Object Storage \ "qingstor" 23 / SSH/SFTP Connection \ "sftp" 24 / Webdav \ "webdav" 25 / Yandex Disk \ "yandex" 26 / http Connection \ "http" Storage> 12 #输入12 回车 ** See helpfor drive backend at: https://rclone.org/drive/ **
Google Application Client Id Leave blank normally. Enter a string value. Press Enter for the default (""). client_id> #作者注:client_id和client_secret不填的话会使用rclone的api,在高峰期的时候稳定性一般,可以考虑自己建立一个API,但是轻度使用没什么区别 Google Application Client Secret Leave blank normally. Enter a string value. Press Enter for the default (""). client_secret> #回车 使用默认api 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 typein 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 #填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? * Say Y if not sure * Say N if you are working on a remote or headless machine y) Yes n) No y/n> n #交给rclone自动认证 If your browser doesn't open automatically go to the following link: https://accounts.google.com/o/oauth2/auth?access_type=offline&clienxxxxxxxx Log in and authorize rclone for access #复制打开上述网址,并且登入你想要的gg账号,然后会获得一个4开头的授权码,粘贴到下方,并且回车 Enter verification code> 4/xxxxxxxB-xxx Configure this as a team drive? y) Yes n) No y/n> y #是否是团队盘 Fetching team drive list... Choose a number from below, or type in your own value 1 / seedbox \ "0Axxxx" 2 / YeZi \ "0AOxxxx" Enter a Team Drive ID> 2 #选择一个团队盘 -------------------- [test] type = drive scope = drive token = {"access_token":"xxxxxx","token_type":"xxxx","refresh_token":"xxxx x","expiry":"2x"} team_drive = xxxx -------------------- y) Yes this is OK e) Edit this remote d) Delete this remote y/e/d> y #展示一下本次配置的信息,没问题就y回车 添加成功 Current remotes: Name Type ==== ==== gd drive gd2 drive gd3 drive my drive test 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>