玩转 Google Drive —— rclone 资源转存

    No Comments

    记录一下使用过程。

    Update 2019.5.30 一些其他玩法 (这是倒序,欢迎交流)

    1. 如果要配置300个账号怎么弄呢?为了方便,可以在 Windows 主机上用下面的脚本进行配置,后面配置文件 rclone.conf 复制到别的地方也可以用。
    for /L %%G in (1,1,300) do rclone config create c%%G drive --drive-client-id "xxx.apps.googleusercontent.com" --drive-client-secret "yyy" --drive-team-drive zzz
    配置文件的位置可以输入命令 rclone config file 获得

    2. 手上有 rclone.conf 文件,想从普通盘换到团队盘: 直接修改 rclone 的配置文件,给对应的盘加上 team_drive = YourTeamdriveID。同理换成别的团队盘直接修改 YourTeamdriveID 即可。

    3. 为了更快完成任务,想将官方的 client id 换成自己的:直接在配置文件加 client_id = YourClientID 和
    client_secret = YourClientSecret 两行。但是 token 还需再登陆认证来刷新一下…

    交互式的安装步骤记录如下:

    Step 1. 安装 rclone:
    curl https://rclone.org/install.sh | sudo bash

    Step 2. 参照 官方安装指南,配置rclone。
    1. 输入 rclone config
    2018/12/25 17:19:22 NOTICE: Config file “/root/.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

    2. 输入 n,给新的远程配置起一个名字
    name> cody_gd1
    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 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>

    3. 选择 Google Drive,输入数字 12
    Storage> 12
    See help for drive backend at: https://rclone.org/drive/

    Google Application Client Id
    Leave blank normally.
    Enter a string value. Press Enter for the default (“”).

    Categories: Google Drive, PT, 服务器 Tags: Tags:

    说点什么

    avatar
      Subscribe  
    Notify of