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

OneDrive (Business)

เมานต์ OneDrive ที่มาพร้อมบัญชี Microsoft 365 แบบที่ทำงานหรือโรงเรียนบน Linux ด้วย RaiDrive CLI เมานต์ My Files หรือ Shared หรือโฟลเดอร์ใด ๆ ด้วย URL จากเบราว์เซอร์

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

การยืนยันตัวตนของ Microsoft ต้องใช้เว็บเบราว์เซอร์เริ่มต้น

raidrivecli add onedrivebusiness

หากรันคำสั่งโดยไม่ระบุตัวเลือก ระบบจะเมานต์ My Files เลือก Shared ได้ด้วยตัวเลือก --subtype

raidrivecli add onedrivebusiness --subtype shared

หากไม่ระบุไดเรกทอรีเมานต์ ระบบจะเมานต์ไปยังไดเรกทอรีเช่น /mnt/onedrivebusiness ใต้ /mnt หากต้องการระบุไดเรกทอรีเมานต์ ให้ใช้ตัวเลือก --mount-path

raidrivecli add onedrivebusiness --mount-path /myservices/onedrivebusiness

คุณสามารถเมานต์ OneDrive โดยใช้ URL ที่คัดลอกจากเบราว์เซอร์ วิธีนี้มีประโยชน์มากสำหรับการเมานต์โฟลเดอร์พิเศษ

raidrivecli add onedrivebusiness --remote-url \
                           https://company-my.sharepoint.com/my?id=...

ข้อมูล

พื้นที่จัดเก็บ OneDrive Business China ใช้ onedrivebusinesschina แทน onedrivebusiness

ตัวเลือกเพิ่มเติม

--subtype <files|shared>                My Files, Shared
--remote-url <url>                      folder URL in browser

ดูเพิ่มเติม