Google Drive¶
Cần có trình duyệt web mặc định để xác thực Google.
raidrivecli add googledrive
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 bằng tùy chọn --subtype <mydrive|sharedwithme>.
raidrivecli add googledrive --subtype sharedwithme
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/googledrive. Để chỉ định thư mục gắn, hãy dùng tùy chọn --mount-path.
raidrivecli add googledrive --mount-path /myservices/googledrive
Bạn có thể gắn Google 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 googledrive --remote-url \
https://drive.google.com/drive/u/0/folders/...
Tùy chọn bổ sung¶
--subtype <mydrive|sharedwithme> My Drive,
Shared with me [default: mydrive]
--remote-url <url> folder URL in browser