<Go> rclone

とりえあず入れてみた。

go get github.com/ncw/rclone

rclone.org

で、Google Driveに繋げてみた。
とりあえず、rlcone configと叩く。
Google Drive6を選ぶ。
Client IDClient Secretは指示どおり空で進める。
そうすっと、ブラウザが立ち上がり、普通にGoogleid passwordで入る。
rcloneでの接続を許可して終了。

[541:hoge@x240:~]>rclone config
2016/03/12 10:38:32 Failed to load config file "C:\Users\hoge/.rclone.conf" - using defaults: open C:\Users\hoge/.rclone.conf: The system cannot find the file specified.
No remotes found - make a new one
n) New remote
s) Set configuration password
n/s> n
name> remote_google
Type of storage to configure.
Choose a number from below, or type in your own value
 1 / Amazon Cloud Drive
   \ "amazon cloud drive"
 2 / Amazon S3 (also Dreamhost, Ceph)
   \ "s3"
 3 / Backblaze B2
   \ "b2"
 4 / Dropbox
   \ "dropbox"
 5 / Google Cloud Storage (this is not Google Drive)
   \ "google cloud storage"
 6 / Google Drive
   \ "drive"
 7 / Hubic
   \ "hubic"
 8 / Local Disk
   \ "local"
 9 / Microsoft OneDrive
   \ "onedrive"
10 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
   \ "swift"
11 / Yandex Disk
   \ "yandex"
Storage> 6
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> y
If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth
Log in and authorize rclone for access
Waiting for code...
Got code
--------------------
[remote_google]
client_id =
client_secret =
token = {"access_token":"hogehogehogeho..."}
--------------------
y) Yes this is OK
e) Edit this remote
d) Delete this remote
y/e/d> y
Current remotes:

Name                 Type
====                 ====
remote_google        drive

e) Edit existing remote
n) New remote
d) Delete remote
s) Set configuration password
q) Quit config
e/n/d/s/q> q

で、アクセスしてみた。
動いた。
いいねー。

[542:hoge@x240:~]>rclone lsd remote_google:

Transferred:            0 Bytes (   0.00 kByte/s)
Errors:                 0
Checks:                 0
Transferred:            0
Elapsed time:        1.1s

rclone.org

設定ファイルは下記にある。

C:\Users\hoge/.rclone.conf