Google Drive¶
Google Drive を RaiDrive CLI で Linux にマウントします。My Drive や Shared with me、またはブラウザからコピーした URL で任意のフォルダーをマウントできます。
必要なアカウント、キー、ID の取得方法は、Windows アプリ向けの Google Drive ガイドの始める前にを参照してください。
Google の認証には既定のウェブブラウザが必要です。
raidrivecli add googledrive
オプションを指定せずにコマンドを実行すると、My Drive がマウントされます。Shared with me は --subtype <mydrive|sharedwithme> オプションで選択できます。
raidrivecli add googledrive --subtype sharedwithme
マウントディレクトリを指定しない場合は、/mnt/googledrive のように /mnt の下のディレクトリにマウントされます。マウントディレクトリを指定するには、--mount-path オプションを使います。
raidrivecli add googledrive --mount-path /myservices/googledrive
ブラウザからコピーした URL を使って Google Drive をマウントできます。Computers のような特別なフォルダーをマウントするときに特に便利です。
raidrivecli add googledrive --remote-url \
https://drive.google.com/drive/u/0/folders/...
追加オプション¶
--subtype <mydrive|sharedwithme> My Drive,
Shared with me [default: mydrive]
--remote-url <url> folder URL in browser