备份数据 for Google drive

Linux
18 0

工具:

Rclone

官网:

https://rclone.org

支持网盘:

1、AmazonDrive 2、AmazonS3(alsoDreamhost,Ceph,Minio) 3、BackblazeB2 4、Box 5、Cachearemote 6、Dropbox 7、Encrypt、Decryptaremote 8、FTPConnection 9、GoogleCloudStorage(thisisnotGoogleDrive) 10、GoogleDrive 11、Hubic 12、LocalDisk 13、MicrosoftAzureBlobStorage 14、MicrosoftOneDrive 15、OpenstackSwift(RackspaceCloudFiles,MemsetMemstore,OVH) 16、Pcloud 17、QingCloudObjectStorage 18、SSH、SFTPConnection 19、Webdav 20、YandexDisk 21、httpConnection

申请 Google drive APIs

Rclone 配置需要 Google client\_id,所以提前申请好。点击进入申请 Google drive APIs。

登陆 Google 账户,创建 Project

启用 API

创建凭据

步骤:

手动安装

curl -O https://downloads.rclone.org/rclone-current-linux-amd64.zip
unzip rclone-current-linux-amd64.zip
cd rclone-*-linux-amd64
cp rclone /usr/local/sbin/
chown root:root /usr/local/sbin/rclone
chmod 755 /usr/local/sbin//rclone
rclone config

自动安装

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

配置:

No remotes found - make a new one
n) New remote
s) Set configuration password
q) Quit config
n/s/q> n
name> Google drive
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)
   \ "s3"
 3 / Backblaze B2
   \ "b2"
 4 / Box
   \ "box"
 5 / Cache a remote
   \ "cache"
 6 / Dropbox
   \ "dropbox"
 7 / Encrypt/Decrypt a remote
   \ "crypt"
 8 / FTP Connection
   \ "ftp"
 9 / Google Cloud Storage (this is not Google Drive)
   \ "google cloud storage"
10 / Google Drive
   \ "drive"
11 / Hubic
   \ "hubic"
12 / Local Disk
   \ "local"
13 / Microsoft Azure Blob Storage
   \ "azureblob"
14 / Microsoft OneDrive
   \ "onedrive"
15 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
   \ "swift"
16 / Pcloud
   \ "pcloud"
17 / QingCloud Object Storage
   \ "qingstor"
18 / SSH/SFTP Connection
   \ "sftp"
19 / Webdav
   \ "webdav"
20 / Yandex Disk
   \ "yandex"
21 / http Connection
   \ "http"
Storage> 10
Google Application Client Id - leave blank normally.
client_id>
更新 2018-01-01
评论 ( 0 )
私信
pic
code
pre