Linux rclone挂载onedirve

获取授权密钥

rclone download下载对应的win版本rclone
下载后解压,并从命令行运行rclone authorize "onedrive"
在自动打开的浏览器中登录,登录后会跳转到授权成功的页面。
授权成功后回到CMD窗口,把包含括号一起复制保存。

linux安装rclone

安装rclone&fuse

curl https://rclone.org/install.sh | sudo bash
yum install fuse

rclone配置

rclone config
e/n/d/r/c/s/q> n
name> name1
Storage> 23 #这里onedrive是23,不同的rclone版本数字可能不同
client_id>
client_secret>   #client_id和client_scret不用管,直接留空
y/n> n
result> # 这里输入windows下获取的密钥
Your choice> 1 # 选择onedrive
Chose drive to use:> 0
y/n> y
y/e/d> y
e/n/d/r/c/s/q> q

挂载

创建挂载目录

mkdir -p /onedrive

后台挂载

nohup rclone mount name1:/ /onedrive --copy-links --no-gzip-encoding --no-check-certificate --allow-other --allow-non-empty --umask 000 > logs/log.log 2>&1 &
THE END
分享
二维码
< <上一篇
下一篇>>
文章目录
关闭
目 录