1
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

MacターミナルからGoogle driveにアップロードする

Last updated at Posted at 2018-12-19

背景

Webブラウザ経由で4GB以上のデータをGoogle Driveにアップロードしようとすると、処理が停止してしまったため、ターミナルからアップロードを行ったところうまくいったのでその手順について書きます。

インストール

$ brew install gdrive

OAuth キーの取得

$ drive list
Authentication needed
Go to the following url in your browser:
https://accounts.google.com/o/oauth2/auth?access_type=xxxxxxxxxxxxxxxxxx

上記のURLにアクセスしてverification codeをコピーして入力する。

Enter verification code: xxxxxxxxxxxxxxxxxx

アップロード

$ gdrive upload test.csv 
1
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?