ข้ามไปที่เนื้อหา

Google Drive

เมานต์ Google Drive บน Linux ด้วย RaiDrive CLI เมานต์ My Drive หรือ Shared with me หรือโฟลเดอร์ใด ๆ ด้วย URL ที่คัดลอกจากเบราว์เซอร์ของคุณ

หากต้องการเตรียมบัญชี คีย์ หรือ ID ที่ต้องใช้ ให้ดู ก่อนเริ่มต้น ในคู่มือ Google Drive สำหรับแอป Windows

การยืนยันตัวตนของ 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

คุณสามารถเมานต์ Google Drive โดยใช้ URL ที่คัดลอกจากเบราว์เซอร์ วิธีนี้มีประโยชน์มากสำหรับการเมานต์โฟลเดอร์พิเศษเช่น 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

ดูเพิ่มเติม