LoginSignup
1
2

More than 5 years have passed since last update.

gdrive sync download

Posted at

Google Drive のディレクトリをローカルディレクトリへ同期する。

gdrive [global] sync download [options] <fileId> <path>

共通オプション:

-c, --config <configDir>

アプリケーションパス。既定値: ~/.gdrive

--refresh-token <refreshToken>

アクセストークンの取得に使用する Oauth リフレッシュトークン(上級者用オプション)

--access-token <accessToken>

生存期間の短い要求に使用する Oauth アクセストークン(上級者用オプション)

オプション:

--keep-remote

コンフリクトが発生した場合に Google Drive 側のファイルを優先する。

--keep-local

コンフリクトが発生した場合にローカルのファイルを優先する。

--keep-largest

コンフリクトが発生した場合にサイズの大きいファイルを優先する。

--delete-extraneous

Google Drive に存在しないファイルをローカルから削除する。

--dry-run

どのファイルが転送されるかを表示する。

--no-progress

進捗を非表示にする。

--timeout <timeout>

タイムアウトを秒単位で指定する。 0 を指定した場合はタイムアウトしない。
指定した秒数までに一つもデータが転送されない場合にタイムアウトが発生する。
既定値: 300

1
2
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
2