跳转至

Google Workspace

使用 RaiDrive CLI 在 Linux 上挂载 Google Workspace 的云端硬盘。可以挂载 My Drive、Shared with me 或 Shared drives,也可以通过从浏览器复制的 URL 挂载任意文件夹。

要获取所需的账户、密钥或 ID,请参见 Windows 应用的 Google Workspace 指南中的准备工作。

进行 Google 身份验证需要使用默认浏览器。

raidrivecli add googleworkspace

不带选项执行命令时,将挂载 My Drive。可以通过 --subtype <mydrive|sharedwithme|shareddrives> 选项选择 Shared with me 或 Shared drives。

raidrivecli add googleworkspace --subtype sharedwithme
raidrivecli add googleworkspace --subtype shareddrives

如果未指定挂载目录,存储会挂载到 /mnt 下的相应目录,例如 /mnt/googleworkspace。要指定挂载目录,请使用 --mount-path 选项。

raidrivecli add googleworkspace --mount-path /myservices/googleworkspace

您可以使用从浏览器复制的 URL 挂载 Google Workspace Drive。这对于挂载 Computers 等特殊文件夹特别有用。

raidrivecli add googleworkspace --remote-url \
                https://drive.google.com/drive/u/0/folders/...

附加选项

--subtype <mydrive|sharedwithme|shareddrives>
                                        My Drive,
                                        Shared with me,
                                        Shared drives [default: mydrive]

--remote-url <url>                      folder URL in browser

另请参阅