rclone 是一款的命令行工具,支持在不同对象存储、网盘间同步、上传、下载数据。

前一段 rclone 更新,配置方式发生变化,本教程以 Google Drive 为例,讲述如何新版 rclone 如何配置和使用。

1. 安装

nginx
1
curl https://rclone.org/install.sh | sudo bash

2. 配置

安装完成后输入 rclone config, 输入 n,

img

name:自定义

img

Storage:Google Drive 选择 17

client_idclient_secret 留空使用默认或者自建 api(网上很多教程,小白建议留空默认)

scope 选 1,root_folder_id 留空,service_account_id 留空,Edit advanced config 选择 noUse auto config 如果是在 vps 上面操作选择 n,如果是在本地操作选择 y

img

接下来,在自己电脑上面下载 rclone windows 版 https://downloads.rclone.org/v1.58.0/rclone-v1.58.0-windows-amd64.zip,进入解压后的文件夹,按住 shift 加鼠标右键:在此处打开命令窗口,输入上方 rclone authorize …… 那一段,然后会跳出浏览器登陆,登录完成后显示 success。

图片[1]-新版rclone配置教程
img

回到自己电脑上的命令窗口复制生成的 token 粘贴到 vps 上面,回车确认。配置完成。