Bỏ qua

Google Workspace

Gắn Google Workspace Drive trên Linux bằng RaiDrive CLI. Gắn My Drive, Shared with me hoặc Shared drives, hoặc bất kỳ thư mục nào bằng URL sao chép từ trình duyệt của bạn.

Để biết cách lấy tài khoản, khóa hoặc ID cần thiết, hãy xem Trước khi bắt đầu trong hướng dẫn Google Workspace cho ứng dụng Windows.

Cần có trình duyệt web mặc định để xác thực Google.

raidrivecli add googleworkspace

Nếu chạy lệnh mà không có tùy chọn, My Drive sẽ được gắn. Bạn có thể chọn Shared with me hoặc Shared drives bằng tùy chọn --subtype <mydrive|sharedwithme|shareddrives>.

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

Nếu không chỉ định thư mục gắn, bộ lưu trữ sẽ được gắn vào một thư mục trong /mnt, chẳng hạn /mnt/googleworkspace. Để chỉ định thư mục gắn, hãy dùng tùy chọn --mount-path.

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

Bạn có thể gắn Google Workspace Drive bằng URL sao chép từ trình duyệt. Cách này đặc biệt hữu ích khi gắn một thư mục đặc biệt như Computers.

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

Tùy chọn bổ sung

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

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

Xem thêm