rclone 掛載 Onedrive

參考 rclone 的 mount 文檔,命令如下:

/usr/bin/rclone mount onedrive: /mnt/onedrive --vfs-cache-mode writes

--vfs-cache-mode 是控制 NFS 的緩存選項,可以讓 NFS 更像是本地文件系統,它有下面的選項:

--cache-dir string                   Directory rclone will use for caching.
--vfs-cache-max-age duration         Max age of objects in the cache. (default 1h0m0s)
--vfs-cache-mode string              Cache mode off|minimal|writes|full (default "off")
--vfs-cache-poll-interval duration   Interval to poll the cache for stale objects. (default 1m0s)

每一種方式都有利有弊,官方文檔很詳細,可以根據場景選擇合適的方式。

和 fuse 掛載方式一樣,rclone 也可以指定用戶和用戶組,參數分別是 --uid 和 --gid。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章