curl -O https://downloads.rclone.org/rclone-current-linux-amd64.zip
  unzip rclone-current-linux-amd64.zip
  cd rclone-*-linux-amd64
  sudo cp rclone /usr/bin/
  sudo chown root:root /usr/bin/rclone
  sudo chmod 755 /usr/bin/rclone
  sudo mkdir -p /usr/local/share/man/man1
  sudo cp rclone.1 /usr/local/share/man/man1/
  sudo mandb 
  rclone config

配置google drive

rclone config

No remotes found – make a new one
n) New remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config
n/r/c/s/q> n
name> remote (命名随意)
Type of storage to configure.
Choose a number from below, or type in your own value
1 / Amazon Drive
“amazon cloud drive”
2 / Amazon S3 (also Dreamhost, Ceph, Minio)
3 / Backblaze B2
4 / Dropbox
5 / Encrypt/Decrypt a remote
6 / FTP Connection
7 / Google Cloud Storage (this is not Google Drive)
“google cloud storage”
8 / Google Drive
9 / Hubic
10 / Local Disk
11 / Microsoft OneDrive
12 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
13 / SSH/SFTP Connection
14 / Yandex Disk
Storage> 8
Google Application Client Id – leave blank normally.
client_id> 直接回车略过
Google Application Client Secret – leave blank normally.
client_secret> 直接回车略过
Remote config
Use auto config?

  • Say Y if not sure
  • Say N if you are working on a remote or headless machine or Y didn’t work
    y) Yes

n) No
y/n> n
If your browser doesn’t open automatically go to the following link: http://**
Log in and authorize rclone for access
Enter verification code>


Configure this as a team drive?
y) Yes
n) No
y/n> n

client_id =
client_secret =
token =

y) Yes this is OK
e) Edit this remote
d) Delete this remote
y/e/d> y

e) Edit existing remote
n) New remote
d) Delete remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config

rclone sync 同步命令
用法:rclone sync [同步的目录文件地址] [上面设置的名字]:[google drive的目录名]

rclone copy 复制命令
用法:rclone copy [同步的目录文件地址] [上面设置的名字]:[google drive的目录名]



电子邮件地址不会被公开。 必填项已用*标注